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

[PATCH 2/2] docs: update behavior of git-cat-file --buffer

From
John Cai via GitGitGadget <gitgitgadget@gmail.com>
Date
Nov 5, 2021, 21:56 UTC
Message-ID
<18d6c2819ade2e514a408e4173c6a5048e3f2cd1.1636149400.git.gitgitgadget@gmail.com>
In-Reply-To
<pull.1124.git.git.1636149400.gitgitgadget@gmail.com>
From: John Cai <johncai86@gmail.com>

When an empty string is entered into stdin, git-cat-file --buffer will flush stdout immediately. This commit updates the man page accordingly.

Signed-off-by: John Cai <johncai86@gmail.com>
---
 Documentation/git-cat-file.txt | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/Documentation/git-cat-file.txt b/Documentation/git-cat-file.txt
index 27b27e2b300..c98e8dc3669 100644
--- a/Documentation/git-cat-file.txt
+++ b/Documentation/git-cat-file.txt
@@ -104,7 +104,8 @@ OPTIONS
 	that a process can interactively read and write from
 	`cat-file`. With this option, the output uses normal stdio
 	buffering; this is much more efficient when invoking
-	`--batch-check` on a large number of objects.
+	`--batch-check` on a large number of objects. An empty string will
+	force a flush of stdout.
 
 --unordered::
 	When `--batch-all-objects` is in use, visit objects in an
-- 
gitgitgadget
Previous: Junio C Hamano
Message 8 of 8 in “cat-file: force flush of stdout on empty string”
  1. 0/2 cat-file: force flush of stdout on empty stringJohn Cai via GitGitGadget, Nov 5, 2021
  2. 1/2 cat-file: force flush of stdout on empty stringJohn Cai via GitGitGadget, Nov 5, 2021
  3. Junio C HamanoNov 6, 2021
  4. Ævar Arnfjörð BjarmasonNov 6, 2021
  5. John CaiNov 8, 2021
  6. Ævar Arnfjörð BjarmasonNov 8, 2021
  7. Junio C HamanoNov 8, 2021
  8. 2/2 docs: update behavior of git-cat-file --bufferJohn Cai via GitGitGadget, Nov 5, 2021

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.