Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Git Interactive Ruby Toolset . . . Hippopotamus?

branch: master
Octocat-spinner-32 bin Rename to Girth February 13, 2011
Octocat-spinner-32 lib Fix warnings August 24, 2011
Octocat-spinner-32 test Switch to minitest August 24, 2011
Octocat-spinner-32 .gitignore Use Bundler for packaging February 13, 2011
Octocat-spinner-32 Gemfile Use Bundler for packaging February 13, 2011
Octocat-spinner-32 README.rdoc Expand README February 13, 2011
Octocat-spinner-32 Rakefile Use Bundler for packaging February 13, 2011
Octocat-spinner-32 girth.gemspec Switch to minitest August 24, 2011
README.rdoc

Girth

Girth is a Git library for Ruby I started back when there weren't any Git libraries for Ruby and recently named and resurrected. It's designed to be expressive and natural to use in IRB. A ridiculous amount of effort was put into making inspect methods provide executable output. When you call refs.heads.master, the inspect includes refs.heads.master (and just like in Git, you can shorten that call to just master).

A big driver for the creation of this library was exploring the bowels of Git (side note: the same could be said of fugitive.vim). As such, it's biased towards reading rather than writing, though has some support for both. It feels like a natural choice for writing Git hooks, though I haven't used it for that much, yet.

git-irb

This command creates a repository object for your current repository and places you inside it in an IRB session.

$ git-irb
>> head == refs.heads.master
=> true
>> head.sha1
=> "0000000000000000000000000000000000000000"
Something went wrong with that request. Please try again.