Project

gitrb

0.01
No commit activity in last 3 years
No release in over 3 years
Fast and lightweight ruby git implementation
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

>= 0
 Project Readme

GitRb - Native ruby interface to git

GitRb is a native interface to git. It is based on git_store by Matthias Georgi.

Installation

GitStore can be installed as gem easily:

$ gem sources -a http://gemcutter.org
$ sudo gem install gitrb

Usage Example

require 'gitrb'

repo = Gitrb::Repository.new(:path => '/tmp/repository', :create => true)
repo.transaction do
  repo.root['textfile1'] = Gitrb::Blob.new(:data => 'text')
  repo.root['textfile2'] = Gitrb::Blob.new(:data => 'text')
end

puts repo.root['textfile1'].data
puts repo.root['textfile2'].data