Skip to content

Commit dfc8333

Browse files
avargitster
authored andcommitted
doc txt & -h consistency: add "-z" to cat-file "-h"
Fix a bug in db9d67f (builtin/cat-file.c: support NUL-delimited input with `-z`, 2022-07-22), before that change the SYNOPSIS and "-h" output were the same, but not afterwards. That change followed a similar earlier divergence in 473fa2d (Documentation: add --batch-command to cat-file synopsis, 2022-04-07). Subsequent commits will fix this sort of thing more systematically, but let's fix this one as a one-off. Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent d4056db commit dfc8333

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/cat-file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,7 @@ int cmd_cat_file(int argc, const char **argv, const char *prefix)
893893
N_("git cat-file (-t | -s) [--allow-unknown-type] <object>"),
894894
N_("git cat-file (--batch | --batch-check | --batch-command) [--batch-all-objects]\n"
895895
" [--buffer] [--follow-symlinks] [--unordered]\n"
896-
" [--textconv | --filters]"),
896+
" [--textconv | --filters] [-z]"),
897897
N_("git cat-file (--textconv | --filters)\n"
898898
" [<rev>:<path|tree-ish> | --path=<path|tree-ish> <rev>]"),
899899
NULL

0 commit comments

Comments
 (0)