Method: Git::Lib#describe
- Defined in:
- lib/git/lib.rb
#describe(commit_ish = nil, opts = {}) ⇒ String
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.
Finds most recent tag that is reachable from a commit
245 246 247 248 249 250 251 252 |
# File 'lib/git/lib.rb', line 245 def describe(commit_ish = nil, opts = {}) ('commit-ish object', commit_ish) args = build_args(opts, DESCRIBE_OPTION_MAP) args << commit_ish if commit_ish command('describe', *args) end |