Method: Git::Lib#rev_parse
- Defined in:
- lib/git/lib.rb
#rev_parse(revision) ⇒ String Also known as: revparse
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Verify and resolve a Git revision to its full SHA
385 386 387 388 389 |
# File 'lib/git/lib.rb', line 385 def rev_parse(revision) ('rev', revision) command('rev-parse', '--revs-only', '--end-of-options', revision, '--') end |