Method: Git::Lib#name_rev
- Defined in:
- lib/git/lib.rb
#name_rev(commit_ish) ⇒ String? Also known as: namerev
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.
Find the first symbolic name for given commit_ish
402 403 404 405 406 |
# File 'lib/git/lib.rb', line 402 def name_rev(commit_ish) ('commit_ish', commit_ish) command('name-rev', commit_ish).split[1] end |