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

Request: Adding -q/--quiet option to git-cat-file

From
Jakub Narebski <jnareb@gmail.com>
Date
Dec 2, 2006, 21:32 UTC
Message-ID
<eksr9n$s2c$1@sea.gmane.org>

The only "committag" gitweb implements now is linking the full 40-char sha of a commit to a "commit" view. This requires checking the type of object given by sha1... but git-cat-file -t writes errors to stdout if the object does not exist. I'd rather not use additional call, using git-cat-file -e, or using 'string' version of magic "-|" open to redirect stdout to /dev/null (as it is additional fork anyway).

What I need is an option -q/--quiet to git-cat-file to forbid printing error messages to stderr... but it looks like it would be easier to add it universally for all commands, or add it to git wrapper.

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Message 1 of 1 in “Request: Adding -q/--quiet option to git-cat-file”
  1. Jakub NarebskiDec 2, 2006

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.