Class: Git::Commands::CatFile::Filtered Private
- Defined in:
- lib/git/commands/cat_file/filtered.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-cat-file/2.53.0
Retrieves a single git object after applying working-tree filter processing
Runs git cat-file with --textconv or --filters. Both modes require the
caller to identify the object by revision and path so that git can look up
the applicable .gitattributes rules:
--textconv— apply only the textconv filter (binary-to-text conversion defined bydiff.<driver>.textconvin.gitattributes); intended for human-readable display--filters— apply the full working-tree pipeline: smudge filter, EOL conversion, and textconv; returns the content exactly asgit checkoutwould write it to disk
The object can be identified as a combined <rev>:<path> string passed as the
rev operand, or as a bare <rev> with --path=<path> supplied separately.
For unfiltered object access, use Raw. For batch queries across multiple objects, use Batch.
Instance Method Summary collapse
-
#call(*, **)
Execute
git cat-file --textconvorgit cat-file --filters.
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(rev, textconv: true, **options) ⇒ Git::CommandLineResult #call(rev, filters: true, **options) ⇒ Git::CommandLineResult
Execute git cat-file --textconv or git cat-file --filters.
|
|
# File 'lib/git/commands/cat_file/filtered.rb', line 59
|