Class: Git::Commands::ShowRef::List Private
- Defined in:
- lib/git/commands/show_ref/list.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
arguments block audited against https://git-scm.com/docs/git-show-ref/2.53.0
Standard ref listing command via git show-ref
Lists refs stored in the local repository together with their associated commit IDs. When no filters are given, all refs are listed. Filters can narrow output to heads, tags, or refs matching a given pattern.
An exit status of 1 is not an error — it indicates that no matching refs were found. Exit status 0 means at least one match was found.
For strict per-ref verification, use Verify. For stdin-based filtering, use ExcludeExisting. For a simple boolean existence check (git >= 2.43), use Exists.
Instance Method Summary collapse
-
#call(*pattern, **options) ⇒ Git::CommandLineResult
Execute
git show-refto list matching refs.
Methods inherited from Base
allow_exit_status, arguments, #initialize, requires_git_version, skip_version_validation
Constructor Details
This class inherits a constructor from Git::Commands::Base
Instance Method Details
#call(*pattern, **options) ⇒ Git::CommandLineResult
|
|
# File 'lib/git/commands/show_ref/list.rb', line 95
|