https://github.com/tpope/girth
Git Interactive Ruby Toolset . . . Hippopotamus?
https://github.com/tpope/girth
Last synced: about 1 year ago
JSON representation
Git Interactive Ruby Toolset . . . Hippopotamus?
- Host: GitHub
- URL: https://github.com/tpope/girth
- Owner: tpope
- Created: 2011-02-13T20:45:35.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2011-08-25T01:59:37.000Z (almost 15 years ago)
- Last Synced: 2025-04-04T12:22:05.565Z (over 1 year ago)
- Language: Ruby
- Homepage:
- Size: 125 KB
- Stars: 11
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.rdoc
Awesome Lists containing this project
README
= 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"