diff --git a/grit.gemspec b/grit.gemspec index 51838f4..6c3b2cd 100644 --- a/grit.gemspec +++ b/grit.gemspec @@ -1,6 +1,6 @@ Gem::Specification.new do |s| s.name = "grit" - s.version = "0.9.1" + s.version = "0.9.3" s.date = "2008-04-24" s.summary = "Object model interface to a git repo" s.email = "tom@rubyisawesome.com" diff --git a/lib/grit/commit.rb b/lib/grit/commit.rb index a054f4f..e5b57ad 100644 --- a/lib/grit/commit.rb +++ b/lib/grit/commit.rb @@ -182,6 +182,10 @@ module Grit def to_s @id end + + def sha + @id + end # Pretty object inspection def inspect