diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-09-09 15:35:20 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-09-09 15:35:20 -0700 |
commit | 8eac268d5824abada1efa8990ea211f476ca942b (patch) | |
tree | 712e2b7c4f6bcacc8bacfed4d7ee98ed8aa484ce /git-cat-file.txt | |
parent | 91e3395c6964b309b071bf9fe79bd004c979b297 (diff) | |
download | git-htmldocs-8eac268d5824abada1efa8990ea211f476ca942b.tar.gz |
Autogenerated HTML docs for v1.8.4-242-gbb80ee
Diffstat (limited to 'git-cat-file.txt')
-rw-r--r-- | git-cat-file.txt | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/git-cat-file.txt b/git-cat-file.txt index 10fbc6a37..21cffe2bc 100644 --- a/git-cat-file.txt +++ b/git-cat-file.txt @@ -86,10 +86,9 @@ BATCH OUTPUT ------------ If `--batch` or `--batch-check` is given, `cat-file` will read objects -from stdin, one per line, and print information about them. - -Each line is considered as a whole object name, and is parsed as if -given to linkgit:git-rev-parse[1]. +from stdin, one per line, and print information about them. By default, +the whole line is considered as an object, as if it were fed to +linkgit:git-rev-parse[1]. You can specify the information shown for each object by using a custom `<format>`. The `<format>` is copied literally to stdout for each @@ -110,6 +109,13 @@ newline. The available atoms are: The size, in bytes, that the object takes up on disk. See the note about on-disk sizes in the `CAVEATS` section below. +`rest`:: + If this atom is used in the output string, input lines are split + at the first whitespace boundary. All characters before that + whitespace are considered to be the object name; characters + after that first run of whitespace (i.e., the "rest" of the + line) are output in place of the `%(rest)` atom. + If no format is specified, the default format is `%(objectname) %(objecttype) %(objectsize)`. |