Other than parsing git log for the date string, is there a Git native way to report the date of a certain commit?
+5
A:
The show command may be what you want. Try
git show --format="%ci" <commit>
Other formats for the date string are available as well. Check the man page for details.
Tim Henigan
2010-09-28 16:36:13
To get the commit without its diff, use `log -1` instead of `show`.
jleedev
2010-09-28 16:42:07
Or add the '-s' to the command:`git show -s --format="%ci" <commit>`
aprock
2010-09-28 17:38:30