From: Ævar Arnfjörð Bjarmason Date: Thu, 13 Oct 2022 15:39:04 +0000 (+0200) Subject: doc txt & -h consistency: add "-z" to cat-file "-h" X-Git-Tag: v2.39.0-rc0~73^2~24 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dfc833332a8a45a700ec8c8be3bdb1334bdb7f4c;p=thirdparty%2Fgit.git doc txt & -h consistency: add "-z" to cat-file "-h" Fix a bug in db9d67f2e9c (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 473fa2df08d (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 Signed-off-by: Junio C Hamano --- diff --git a/builtin/cat-file.c b/builtin/cat-file.c index 989eee0bb4..fa7bd89169 100644 --- a/builtin/cat-file.c +++ b/builtin/cat-file.c @@ -893,7 +893,7 @@ int cmd_cat_file(int argc, const char **argv, const char *prefix) N_("git cat-file (-t | -s) [--allow-unknown-type] "), N_("git cat-file (--batch | --batch-check | --batch-command) [--batch-all-objects]\n" " [--buffer] [--follow-symlinks] [--unordered]\n" - " [--textconv | --filters]"), + " [--textconv | --filters] [-z]"), N_("git cat-file (--textconv | --filters)\n" " [: | --path= ]"), NULL