git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] doc txt & -h consistency: fix recent "cat-file" inconsistency

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Apr 7, 2022, 19:08 UTC
Message-ID
<patch-1.1-79404e05d73-20220407T185645Z-avarab@gmail.com>

The cat-file SYNOPSIS and help output were made consistent in 83dc443439c (cat-file: don't whitespace-pad "(...)" in SYNOPSIS and usage output, 2022-01-10).

They then drifted apart again in 440c705ea63 (cat-file: add --batch-command mode, 2022-02-18). Let's fix that and list the new --batch-command option in the SYNOPSIS section.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
---
 Documentation/git-cat-file.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/git-cat-file.txt b/Documentation/git-cat-file.txt
index 70c5b4f12d1..24a811f0ef6 100644
--- a/Documentation/git-cat-file.txt
+++ b/Documentation/git-cat-file.txt
@@ -12,7 +12,7 @@ SYNOPSIS
 'git cat-file' <type> <object>
 'git cat-file' (-e | -p) <object>
 'git cat-file' (-t | -s) [--allow-unknown-type] <object>
-'git cat-file' (--batch | --batch-check) [--batch-all-objects]
+'git cat-file' (--batch | --batch-check | --batch-command) [--batch-all-objects]
 	     [--buffer] [--follow-symlinks] [--unordered]
 	     [--textconv | --filters]
 'git cat-file' (--textconv | --filters)
-- 
2.36.0.rc0.849.g2d5b5d9ab01
Next: Junio C Hamano
Message 1 of 4 in “doc txt & -h consistency: fix recent "cat-file" inconsistency”
  1. doc txt & -h consistency: fix recent "cat-file" inconsistencyÆvar Arnfjörð Bjarmason, Apr 7, 2022
  2. Junio C HamanoApr 7, 2022
  3. Ævar Arnfjörð BjarmasonApr 8, 2022
  4. Junio C HamanoApr 8, 2022

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.