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

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

From
SPSebastian Pipping <webmaster@hartwork.org>
Date
Apr 15, 2009, 16:56 UTC
Message-ID
<49E611A5.8090602@hartwork.org>
In-Reply-To
<20090415165420.GB24528@coredump.intra.peff.net>
Jeff King wrote:
Show 6 quoted lines
> That usage message is misleading. You need to use one of -t, -s, -e, -p,
> or <type>. So it should perhaps just be:
> 
>   git cat-file -t|-s|-e|-p|<type> <sha1>
> 
> though that looks terribly ugly. Suggestions welcome.
Thanks for making that clear.  How about round or curly brackets?
Sebastian
Previous: Jeff KingNext: Jeff King
Message 3 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.