Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show commit dates #46

Open
glensc opened this issue Jun 20, 2020 · 2 comments
Open

Show commit dates #46

glensc opened this issue Jun 20, 2020 · 2 comments

Comments

@glensc
Copy link
Contributor

glensc commented Jun 20, 2020

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

5) fc369bf2e393cf18be5c300ca8b78fb54617074f [L] update composer dependencies <[email protected]>
@keis
Copy link
Owner

keis commented Jun 22, 2020

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!

@glensc
Copy link
Contributor Author

glensc commented Jun 25, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants