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

Re: "git cat-file <sha1>" shows usage but should not?

From
Julian Phillips <julian@quantumfyre.co.uk>
Date
Apr 15, 2009, 17:33 UTC
Message-ID
<alpine.LNX.2.00.0904151827530.14321@reaper.quantumfyre.co.uk>
In-Reply-To
<20090415170444.GA24717@coredump.intra.peff.net>
On Wed, 15 Apr 2009, Jeff King wrote:
Show 5 quoted lines
> static const char * const cat_file_usage[] = {
> -	"git cat-file [-t|-s|-e|-p|<type>] <sha1>",
> -	"git cat-file [--batch|--batch-check] < <list_of_sha1s>",
> +	"git cat-file {-t|-s|-e|-p|<type>} <object>",
> +	"git cat-file [--batch|--batch-check] < <list_of_objects>",
Shouldn't that read:
+	"git cat-file {--batch|--batch-check} < <list_of_objects>",

since, like the previous line, you are required to supply one of the two options?

-- 
Julian

  ---
DPRINTK("FAILURE, CAPUT\n");
         linux-2.6.6/drivers/net/tokenring/ibmtr.c
Previous: Jeff KingNext: Jeff King
Message 7 of 8 in “"git cat-file <sha1>" shows usage but should not?”
  1. Sebastian PippingApr 15, 2009
  2. Jeff KingApr 15, 2009
  3. Sebastian PippingApr 15, 2009
  4. Jeff KingApr 15, 2009
  5. Junio C HamanoApr 15, 2009
  6. Jeff KingApr 15, 2009
  7. Julian PhillipsApr 15, 2009
  8. Jeff KingApr 15, 2009

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.