git-fixup icon indicating copy to clipboard operation
git-fixup copied to clipboard

Show commit dates

Open glensc opened this issue 4 years ago • 2 comments

sometimes there are repeated commit messages, so would be nice to know which one is newer

5) fc369bf2e393cf18be5c300ca8b78fb54617074f [L] update composer dependencies <[email protected]>

glensc avatar Jun 20 '20 07:06 glensc

That makes sense and could be as easy as adding "%ar" to the format string. I've not had that specific need myself so I'm not sure it makes sense to add, I imagine all the pretty format options are relevant for someone somewhere but I can imagine this being a pretty common one.

Making it configurable could be an option but doesn't exclude changing the default and hacking the script might be just as easy as finding the right configuration knob.

I'll need to think about this one for a while, if anyone wants to chime in on what colour to make the bikeshed feel free!

keis avatar Jun 22 '20 20:06 keis

If you need ideas about the colors, I'm used to some git log alias colors I've using for years (I don't have info about the alias origin):

image


[alias]
    lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit

glensc avatar Jun 25 '20 08:06 glensc