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

Re: [RFC] 'git cat-file' needs a better design on its option interface

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
Sep 24, 2009, 17:23 UTC
Message-ID
<alpine.LFD.2.01.0909241021120.3303@localhost.localdomain>
In-Reply-To
<3a3680030909240804w1399ed7fhd6367300544f34f@mail.gmail.com>
On Thu, 24 Sep 2009, Li Hong wrote:
> 
> When using 'git cat-file' recently, I find its option interface is somewhat
> inconvenient or mistakenly-designed.

You likely shouldn't use 'cat-file' at all. Have you looked at 'git show'? That's the command meant for human beings.

'git cat-file' is really really low-level plumbing. Humans should generally never use it. It's one of the original git commands (it was literally in the original git commit), and it does some really low-level stuff that is good for scripting but not for any normal use.

		Linus
Previous: Jeff KingNext: Matthieu Moy
Message 3 of 6 in “[RFC] 'git cat-file' needs a better design on its option interface”
  1. Li HongSep 24, 2009
  2. Jeff KingSep 24, 2009
  3. Linus TorvaldsSep 24, 2009
  4. Matthieu MoySep 24, 2009
  5. Nicolas PitreSep 24, 2009
  6. Li HongSep 25, 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.