# Pure Ruby GIT repository reader

**URL:** <https://www.ruby-forum.com/t/pure-ruby-git-repository-reader/104007>\
**Category:** Ruby\
**Created:** [May 12, 2007, 9:24pm UTC](https://www.ruby-forum.com/t/pure-ruby-git-repository-reader/104007 "2007-05-12T21:24:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pure](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3ab097/32.png) [@pure](https://www.ruby-forum.com/u/pure)\
**Post date:** [May 12, 2007, 9:24pm UTC](https://www.ruby-forum.com/t/pure-ruby-git-repository-reader/104007/1 "2007-05-12T21:24:19Z")

</div>

Friends of decentralized version control,

I’ve written a reader for GIT repositories in pure Ruby. It’s not much  
but if you need it you haven’t to write what others have written  
already.

Repository:  
[http://cthulhu.c3d2.de/~astro/git/gitnotification.git/](http://cthulhu.c3d2.de/~astro/git/gitnotification.git/)  
Source browser:  
[http://cthulhu.c3d2.de/~astro/gitweb/?p=gitnotification.git;a=tree](http://cthulhu.c3d2.de/~astro/gitweb/?p=gitnotification.git;a=tree)

My intention was to write a Jabber bot for GIT commit notification. This  
hasn’t been finished, but I needed a way to navigate through commits  
without fetching the whole repository. I didn’t find a way to do this  
with vanilla GIT or Cogito.

Features:

- Access only via HTTP (found git:// too hard to implement)
- Small HTTP backend for partial retrieval and handling HTTP resources  
like IO
- Can handle packs and their .idx files
- GIT::CommitTracer grabs all commits from HEAD until a specific rev to  
determine what’s new

As I said, this is not much. But maybe anyone could need it, and I would  
love to help at some ruby-git project.

Stephan
