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

Re: git show and the --quiet option

From
Gustaf Hendeby <hendeby@isy.liu.se>
Date
May 28, 2011, 18:03 UTC
Message-ID
<4DE13906.9030806@isy.liu.se>
In-Reply-To
<20110528172611.GB28708@centaur.lab.cmartin.tk>
Hi Carlos,
thanks for the detailed answer.
On 05/28/2011 07:26 PM, Carlos Martín Nieto wrote:
Show 8 quoted lines
> On Sat, May 28, 2011 at 06:53:28PM +0200, Gustaf Hendeby wrote:
>> Hello everyone,
>>
>> I was playing around with "git show" lately and realized it has changed
>> its behavior regarding the --quiet option, which no longer suppresses
>> the diff output as it used to.  The behavior change happened in
>> 1c40c36b ("log: convert to parse-options").  Was this intentional?
>  How are you using the --quiet option and why would you even need it?
I used
git show --quiet --pretty="format:%ci" HEAD
to extract the commit date of HEAD, and I simply replaced it with
git log -1 --quiet --pretty="format:%ci" HEAD
Though, the email from Junio suggests I should use (and this works)
git show -a --pretty="format:%ci" HEAD
still, I wonder if there is no better/more efficient solution to this.
/Gustaf
Previous: Carlos Martín NietoNext: Carlos Martín Nieto
Message 3 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.