Skip to content

Commit 4881328

Browse files
ahmedakefgitster
authored andcommitted
docs: explain the order of output in the batched mode of git-cat-file(1)
The batched mode of git-cat-file(1) reads multiple objects from stdin and prints their respective contents to stdout. The order in which those objects are printed is not documented and may not be immediately obvious to the user. Document it. Signed-off-by: ahmed akef <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 6a562e6 commit 4881328

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Documentation/git-cat-file.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -270,9 +270,9 @@ BATCH OUTPUT
270270
------------
271271

272272
If `--batch` or `--batch-check` is given, `cat-file` will read objects
273-
from stdin, one per line, and print information about them. By default,
274-
the whole line is considered as an object, as if it were fed to
275-
linkgit:git-rev-parse[1].
273+
from stdin, one per line, and print information about them in the same
274+
order as they have been read. By default, the whole line is
275+
considered as an object, as if it were fed to linkgit:git-rev-parse[1].
276276

277277
When `--batch-command` is given, `cat-file` will read commands from stdin,
278278
one per line, and print information based on the command given. With

0 commit comments

Comments
 (0)