lib/rim/git.rb in esr-rim-1.3.9 vs lib/rim/git.rb in esr-rim-1.4.0
- old
+ new
@@ -142,9 +142,20 @@
execute "git rev-list -n 1 #{rev} --" do |out, e|
sha1 = out.strip if !e
end
sha1
end
+
+ # returns some informations about a revision
+ def rev_infos(rev, desired)
+ info = {}
+ desired.each_pair do |key, value|
+ execute "git log -1 --format=#{value} #{rev} --" do |out, e|
+ info[key] = out.strip if !e
+ end
+ end
+ info
+ end
# returns the SHA-1 representations of the heads of all remote branches
def remote_branch_revs
out = execute "git show-ref"
out.split("\n").collect { |l|