1

It is possible to get a git shortlog result with the date/time of the commit?

Otherwise is it possible to get git log to group commits and sum them by author and print out only the message and time?

Alex King
  • 180
  • 6
  • 17

1 Answers1

3

It is possible to get a git shortlog result with the date/time of the commit?

Yes, using the --format=format:%cI option. See "PRETTY FORMATS" in the git-log man page for details.

Otherwise is it possible to get git log to group commits and sum them by author and print out only the message and time?

Not that I can find. You could whip something up with libgit2.

Schwern
  • 153,029
  • 25
  • 195
  • 336
  • this doesn't work git log -4 --pretty=format:%h --format=format:%cI and this doesn't work git log -4 --pretty=format:%hcI and this doesn't work git log -4 --format=format:%cI – Andrew Paul Simmons Mar 08 '16 at 13:08
  • @AndrewPaulSimmons What about them "doesn't work" and what does that have to do with this answer? – Schwern Mar 08 '16 at 17:54
  • 1
    I was looking for the answer to "How do I git log with short commit hash + date/time?" and got it here http://stackoverflow.com/questions/35868396/how-do-i-git-log-with-short-commit-hash-date-time – Andrew Paul Simmons Mar 09 '16 at 01:07