jxson
5/12/2010 - 7:42 PM

grit-example.rb

require 'rubygems'
require 'grit'
include Grit
repo = Repo.new(".git")

head = repo.head

puts "branch: " + head.name
puts "sha: " + head.commit