Skip to contentSkip to conversation

Question about git-log --date and default behavior

DISCUSSION Seth Falcon 3 participants 4 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

Is there a way have git-log use --date=local as the default for my repositories?

I found that I could make an alias like 'llog' to do this, but I wondered if there was a way that wouldn't require me to type anything different.

+ seth

Signature · 1 line
Seth Falcon
#1 lore raw
Quoted 2 lines · Seth Falcon

Is there a way have git-log use --date=local as the default for my repositories?

I don't think so. It would be nice to have a config option, but that should almost certainly wait until post-1.5.3.

I think changing the default for 'git-log' should be OK, as it's a porcelain, but others might disagree.

-Peff

#2 lore raw
Quoted 2 lines · Jeff King

I think changing the default for 'git-log' should be OK, as it's a porcelain, but others might disagree.

As Johannes pointed out, at least gitk is using 'git-log' behind the scenes, so this is probably not a good idea. It seems like a bit of a conflict, though, since git-log is supposed to be porcelain (I thought).

-Peff

#3 lore raw
In reply to Seth Falcon

Hi,

Quoted 2 lines · Seth Falcon

Is there a way have git-log use --date=local as the default for my repositories?

I guess this could break scripts (AFAIR gitk uses "git log" instead of "git rev-list" these days, and parses the output).

Better stay with your alias.

Ciao,
Dscho