Method: Git::Base#rev_parse

Defined in:
lib/git/base.rb

#rev_parse(objectish) Also known as: revparse

runs git rev-parse to convert the objectish to a full sha

Examples:

git.rev_parse("HEAD^^")
git.rev_parse('v2.4^{tree}')
git.rev_parse('v2.4:/doc/index.html')
[View source]

668
669
670
# File 'lib/git/base.rb', line 668

def rev_parse(objectish)
  self.lib.rev_parse(objectish)
end