Use author date, not commit date, for Git commits #14

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
3 participants
@koterpillar

Git author and committer can be different, and so can author and commit dates (i.e. someone might have re-committed earlier changes to a new repository, or imported them from another VCS). So Gource should show author date (it already shows the author name and not the committer name).

@acaudwell

This comment has been minimized.

Show comment
Hide comment
@acaudwell

acaudwell Sep 13, 2012

Owner

Hi. The reason for using the commit date was that author dates, as you mentioned, may not be in the same order as commits in the Git log, causing a lot of 'time travel' in the displayed time line.

If the log was sorted into author date order as well, either by a different log command or by a pre sorting phase added to Gource, then I would be ok with perhaps using the author date.

Owner

acaudwell commented Sep 13, 2012

Hi. The reason for using the commit date was that author dates, as you mentioned, may not be in the same order as commits in the Git log, causing a lot of 'time travel' in the displayed time line.

If the log was sorted into author date order as well, either by a different log command or by a pre sorting phase added to Gource, then I would be ok with perhaps using the author date.

@cburschka

This comment has been minimized.

Show comment
Hide comment
@cburschka

cburschka Nov 30, 2015

This can be done using the "--author-date-order" option in git-log. (I just had a similar problem with a repository where an SVN migration had broken all the commit dates.)

Unfortunately, there doesn't seem to be an option to filter by author date the way --since/--until. So --start-date and --stop-date would still filter by commit date.

This can be done using the "--author-date-order" option in git-log. (I just had a similar problem with a repository where an SVN migration had broken all the commit dates.)

Unfortunately, there doesn't seem to be an option to filter by author date the way --since/--until. So --start-date and --stop-date would still filter by commit date.

@koterpillar koterpillar closed this Jun 4, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment