threads / discuss / 4789

git-log output changed from 1.4.0 -> 1.4.1?

Subject: git-log output changed from 1.4.0 -> 1.4.1?

## tl;dr

4 messages between Jul 6, 2006 and Jul 6, 2006.

replies: 3people: 3as markdown or json

Robin Luckey· Jul 6, 2006, 21:51 UTC · lore

We use a custom script to generate reports based on the git-log output. However, it appears that the output of git-log has changed in 1.4.1, and I have been unable to discover a set of flags to recreate the log format to which I have become accustomed.

In git 1.4.0, the following command...
git log -r --root --abbrev=40 master
...would generate log entries like this...
commit 8db998464a3cc7f41728ac8bb59aee0f62e14aa8
Author: someone <someone>
Date:   Sun Aug 29 09:44:49 2004 +0000
    A comment goes here.

:100755 000000 56f5eb6c914c7ff6706dc3f8736a77d155cad93f 0000000000000000000000000000000000000000 D someapp/file1.c :100755 000000 d7e0277fe15bfc11f75cbc535ecf1c5ee3d79baf 0000000000000000000000000000000000000000 D someapp/file2.c

Is there a way to generate this same format with git 1.4.1?

Thanks, Robin

Johannes Schindelin· Jul 6, 2006, 21:56 UTC · re: Robin Luckey · lore

Re: git-log output changed from 1.4.0 -> 1.4.1?

Hi,
On Thu, 6 Jul 2006, Robin Luckey wrote:
Show 18 quoted lines
> In git 1.4.0, the following command...
> 
> git log -r --root --abbrev=40 master
> 
> ...would generate log entries like this...
> 
> commit 8db998464a3cc7f41728ac8bb59aee0f62e14aa8
> Author: someone <someone>
> Date:   Sun Aug 29 09:44:49 2004 +0000
> 
>    A comment goes here.
> 
> :100755 000000 56f5eb6c914c7ff6706dc3f8736a77d155cad93f
> 0000000000000000000000000000000000000000 D someapp/file1.c
> :100755 000000 d7e0277fe15bfc11f75cbc535ecf1c5ee3d79baf
> 0000000000000000000000000000000000000000 D someapp/file2.c
> 
> Is there a way to generate this same format with git 1.4.1?

I do not know about git 1.4.1, but with 'next' you can just add '--raw' to the command line, and it works.

Hth, Dscho

Junio C Hamano· Jul 6, 2006, 21:58 UTC · re: Robin Luckey · lore

Re: git-log output changed from 1.4.0 -> 1.4.1?

"Robin Luckey" <robinluckey@gmail.com> writes:
> In git 1.4.0, the following command...
>
> git log -r --root --abbrev=40 master

After Timo's diff options rewrite, -r does not seem to automatically imply diff output anymore. I personally think it should.

In the meantime, "git log --raw -r ..." would give you want you want, I think.

← back to recent threads