threads / bug / 10509

Bug in git-show with "%ai" and "%ci" formats?

Subject: Bug in git-show with "%ai" and "%ci" formats?

## tl;dr

3 messages between Oct 29, 2007 and Oct 29, 2007.

replies: 2people: 2as markdown or json

Wincent Colaiuta· Oct 29, 2007, 13:18 UTC · lore

Can anybody reproduce the following behaviour? Basically all the author and committer date formats documented in the git-show man page work except for "%ai" and "%ci". This is with Git 1.5.2.4 running on Darwin 9.0.0:

$ git show -s --pretty=format:"%ad" Sun Oct 28 20:58:39 2007 +0100 $ git show -s --pretty=format:"%aD" Sun, 28 Oct 2007 20:58:39 +0100 $ git show -s --pretty=format:"%ar" 17 hours ago $ git show -s --pretty=format:"%at" 1193601519 $ git show -s --pretty=format:"%ai" %ai $ git show -s --pretty=format:"%cd" Sun Oct 28 20:58:39 2007 +0100 $ git show -s --pretty=format:"%cD" Sun, 28 Oct 2007 20:58:39 +0100 $ git show -s --pretty=format:"%cr" 17 hours ago $ git show -s --pretty=format:"%ct" 1193601519 $ git show -s --pretty=format:"%ci" %ci

Cheers, Wincent

Johannes Schindelin· Oct 29, 2007, 13:32 UTC · re: Wincent Colaiuta · lore

Re: Bug in git-show with "%ai" and "%ci" formats?

Hi,
On Mon, 29 Oct 2007, Wincent Colaiuta wrote:
> Can anybody reproduce the following behaviour? Basically all the author and
> committer date formats documented in the git-show man page work except for
> "%ai" and "%ci". This is with Git 1.5.2.4 running on Darwin 9.0.0:
It was added in v1.5.3-rc2~17.

Usually, it is a good idea to use the documentation which corresponds with the git version you are using ;-)

Hth, Dscho

Wincent Colaiuta· Oct 29, 2007, 14:28 UTC · re: Johannes Schindelin · lore

Re: Bug in git-show with "%ai" and "%ci" formats?

El 29/10/2007, a las 14:32, Johannes Schindelin escribió:
Show 13 quoted lines
> On Mon, 29 Oct 2007, Wincent Colaiuta wrote:
>
>> Can anybody reproduce the following behaviour? Basically all the  
>> author and
>> committer date formats documented in the git-show man page work  
>> except for
>> "%ai" and "%ci". This is with Git 1.5.2.4 running on Darwin 9.0.0:
>
> It was added in v1.5.3-rc2~17.
>
> Usually, it is a good idea to use the documentation which  
> corresponds with
> the git version you are using ;-)

Doh... funny... This was only yesterday; I installed 1.5.2.4 (stupidly, a typo) and the 1.5.3.4 man pages. If I'd just done a "git stash" or something I would've realized that I was using an older version...

Cheers, Wincent

← back to recent threads