From: Gustaf Hendeby Date: Sat, 28 May 2011 18:03:50 GMT Subject: Re: git show and the --quiet option 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: > 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