class Git::Commands::NameRev
Implements the ‘git name-rev` command
Finds symbolic names suitable for human digestion for revisions given in any format parsable by ‘git rev-parse`.
@example Find the symbolic name for a commit
name_rev = Git::Commands::NameRev.new(execution_context) result = name_rev.call('abc123')
@example Use only tags for naming
name_rev = Git::Commands::NameRev.new(execution_context) result = name_rev.call('abc123', tags: true)
@example List all commits reachable from all refs
name_rev = Git::Commands::NameRev.new(execution_context) result = name_rev.call(all: true)
@example Filter refs by pattern
name_rev = Git::Commands::NameRev.new(execution_context) result = name_rev.call('abc123', refs: ['heads/*', 'tags/*'])
@note ‘arguments` block audited against git-scm.com/docs/git-name-rev/2.53.0
@see git-scm.com/docs/git-name-rev git-name-rev
@api private