Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Git Interactive Ruby Toolset . . . Hippopotamus?
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
lib
test
.gitignore
Gemfile
README.rdoc
Rakefile
girth.gemspec

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.