class Git::Commands::CatFile::Batch

Queries one or more git objects via the batch stdin streaming protocol

Accepts object names (or commands) written to stdin. Three output modes are available, selected by passing exactly one of ‘batch:`, `batch_check:`, or `batch_command:` as a keyword argument:

All three modes accept a format string instead of ‘true` to customise the per-object output line (e.g. `batch: “%(objectname) %(objecttype) %(objectsize)”`)

When ‘batch_all_objects: true` is given instead of object names, git enumerates the entire object database itself and stdin is not read (incompatible with `batch_command:`).

Missing objects never cause a non-zero exit — they are reported inline.

For single-object queries, use {CatFile::Raw}. For filter-processed content, use {CatFile::Filtered}.

@note ‘arguments` block audited against git-scm.com/docs/git-cat-file/2.53.0

@see Git::Commands::CatFile

@see git-scm.com/docs/git-cat-file git-cat-file documentation

@api private