From: Ævar Arnfjörð Bjarmason Date: Thu, 11 Aug 2022 11:52:23 GMT Subject: Re: [PATCH 2/2] builtin/cat-file.c: support NUL-delimited input with `-z` Message-ID: <220811.86o7wrov26.gmgdl@evledraar.gmail.com> In-Reply-To: On Fri, Jul 22 2022, Taylor Blau wrote: This change: > diff --git a/Documentation/git-cat-file.txt b/Documentation/git-cat-file.txt > index 24a811f0ef..3515350ed6 100644 > --- a/Documentation/git-cat-file.txt > +++ b/Documentation/git-cat-file.txt > @@ -14,7 +14,7 @@ SYNOPSIS > 'git cat-file' (-t | -s) [--allow-unknown-type] > 'git cat-file' (--batch | --batch-check | --batch-command) [--batch-all-objects] > [--buffer] [--follow-symlinks] [--unordered] > - [--textconv | --filters] > + [--textconv | --filters] [-z] > 'git cat-file' (--textconv | --filters) > [: | --path= ] > > [...] > diff --git a/builtin/cat-file.c b/builtin/cat-file.c > index f42782e955..c3602d15df 100644 > --- a/builtin/cat-file.c > +++ b/builtin/cat-file.c > @@ -31,6 +31,7 @@ struct batch_options { > int all_objects; > int unordered; > int transform_mode; /* may be 'w' or 'c' for --filters or --textconv */ > + int nul_terminated; > const char *format; > }; Is missing a corresponding change to the -h output here. Before this they were the same, but now: + diff -u txt help --- txt 2022-08-11 11:53:00.235221628 +0000 +++ help 2022-08-11 11:53:00.239221594 +0000 @@ -3,6 +3,6 @@ git cat-file (-t | -s) [--allow-unknown-type] git cat-file (--batch | --batch-check | --batch-command) [--batch-all-objects] [--buffer] [--follow-symlinks] [--unordered] - [--textconv | --filters] [-z] + [--textconv | --filters] git cat-file (--textconv | --filters) [: | --path= ] (Spotted with some local patches of mine which automatically check this)