|
From: Daniel J S. <dan...@ie...> - 2017-12-25 21:19:43
|
On 12/25/2017 01:10 PM, sfeam via gnuplot-beta wrote: > Building from git tip fails to insert a valid date into > the "last modified" field. This used to be pulled from the > top of ChangeLog and inserted into timestamp.h but that > mechanism does not track the date of git commits. > > On that note, I see that git commits keep their original date > (of construction?) rather than the date they were committed. > That means "git log" returns non-sequential dates in the > history of changes. That does not seem like a great idea. > Is there a setting somewhere that tells git to stamp each > commit with the current date instead? There are two dates, author and commit. Explore https://www.git-scm.com/docs/git-log#_pretty_formats and format the spacing, date contents, etc. the way desired. Here's a start (the %cd stands for "commit date"): git log --all --format='Author: %an <%ae>%nCommit Date: %cd%n%n %s%n%n %b' Dan |