Title: Theory / Important / CS / Softw / VCS / Git / Cat-file
Tags: instruction_to_flag seen_description computer_to_instruction fromCommandLine

Fla: cat-file <type> <obejct>
Effect: Provide content of <object> of <type>
Page: https://git-scm.com/book/en/v2/Git-Internals-Git-Objects
Prefix: git
Chapter: 10
Section: 2

Fla: cat-file -p <object>
Effect: figure the file type before showing it
Page: https://git-scm.com/book/en/v2/Git-Internals-Git-Objects
Prefix: git
Chapter: 10
Section: 2

Fla: cat-file -t <object>
Page: https://git-scm.com/docs/git-cat-file
Prefix: git
Print: show the object type identified by <object>

Fla: cat-file -s <object>
Page: https://git-scm.com/docs/git-cat-file
Prefix: git
Print: instead show the object size identified by <object>

Fla: cat-file -e <object>
Effect: exit with 0 iff the object exists
Page: https://git-scm.com/docs/git-cat-file
Prefix: git

Fla: cat-file --textconv <object>  --path=<path|tree-ish> <rev>
Page: https://git-scm.com/docs/git-cat-file
Prefix: git
Print: Show the content as transformed by a textconv filter.

Fla: cat-file --filters <object> --path=<path|tree-ish> <rev>
Page: https://git-scm.com/docs/git-cat-file
Prefix: git
Print: Show the content as converted by the filters configured in the current working tree for the given <path>

Fla: --batch=<format>
Effect: Print object information and contents for each object provided on stdin.
Page: https://git-scm.com/docs/git-cat-file
Prefix: git

Fla: --batch-check=<format>
Effect: Print object information for each object provided on stdin.
Page: https://git-scm.com/docs/git-cat-file
Prefix: git

Fla: --batch-command=<format>
Effect: Enter a command mode that reads commands and arguments from stdin.
Page: https://git-scm.com/docs/git-cat-file
Prefix: git

Fla: --batch-all-objects
Effect: Instead of reading a list of objects on stdin, perform the requested batch operation on all objects in the repository and any alternate object stores (not just reachable objects).
Page: https://git-scm.com/docs/git-cat-file
Prefix: git

Fla: --buffer
Effect: the output uses normal stdio buffering instead of batch output
Page: https://git-scm.com/docs/git-cat-file
Prefix: git
Extra: much more efficient when invoking --batch-check or --batch-command on a large number of objects.

Fla: --unordered
Effect: visit objects in an order which may be more efficient for accessing the object contents than hash order
Page: https://git-scm.com/docs/git-cat-file
Prefix: git

Fla: --allow-unknown-type
Effect: Allow -s or -t to query broken/corrupt objects of unknown type.
Page: https://git-scm.com/docs/git-cat-file
Prefix: git

Fla: --follow-symlinks
Effect: follow symlinks inside the repository when requesting objects with extended SHA-1 expressions of the form tree-ish:path-in-tree. Instead of providing output about the link itself, provide output about the linked-to object.
Page: https://git-scm.com/docs/git-cat-file
Prefix: git --batch or --batch-check