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

Re: git show and the --quiet option

From
Drew Northup <drew.northup@maine.edu>
Date
Jun 2, 2011, 18:26 UTC
Message-ID
<1307039169.28941.35.camel@drew-northup.unet.maine.edu>
In-Reply-To
<20110530093259.GA2990@bee.lab.cmartin.tk>
On Mon, 2011-05-30 at 11:32 +0200, Carlos Martín Nieto wrote:
> On Sat, May 28, 2011 at 12:17:40PM -0700, Junio C Hamano wrote:
> > Carlos Martín Nieto <cmn@elego.de> writes:
> > 
Show 14 quoted lines
> > How does this patch look?
> > 
> > It does not fix "git show master~10 master^..master", but instead of just
> > hijacking and ignoring the --quiet option like your patch did, it actually
> > flips the option the user wanted to affect from the command line.
> 
> It's fine if that's what we want to do. The reason I blocked --quiet
> instead of converting it to -s is because it seemed less surprising
> than passing --quiet and still getting output (if I pass --quiet, I'd
> expect the application to really be quiet), which doesn't happen in
> the commands that accept --quiet on purpose. Then again, the log
> family doesn't make any sense without any output, so if you argue that
> way, --quiet means "quieter", which makes the interface less
> consistent, but I don't feel that strongly about it

There's a lot of stuff out there for which --quiet does not imply --silent. I side with Junio on the solution.

-- 
-Drew Northup
________________________________________________
"As opposed to vegetable or mineral error?"
-John Pescatore, SANS NewsBites Vol. 12 Num. 59
Previous: Carlos Martín NietoNext: Carlos Martín Nieto
Message 7 of 10 in “git show and the --quiet option”
  1. Gustaf HendebyMay 28, 2011
  2. Carlos Martín NietoMay 28, 2011
  3. Gustaf HendebyMay 28, 2011
  4. Carlos Martín NietoMay 29, 2011
  5. Junio C HamanoMay 28, 2011
  6. Carlos Martín NietoMay 30, 2011
  7. Drew NorthupJun 2, 2011
  8. Carlos Martín NietoJun 5, 2011
  9. Junio C HamanoMay 28, 2011
  10. Junio C HamanoMay 28, 2011

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.