Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

add option to order by author date #7

Closed
wants to merge 2 commits into from
Closed

add option to order by author date #7

wants to merge 2 commits into from

Conversation

vwkd
Copy link

@vwkd vwkd commented Nov 14, 2022

Adds a new option -a, --author-date to sort commits by author date (if available) instead of by commit date.

NOTE: The commits from the original repositories are not sorted. Hence to work as you expect, you want the author dates of the commits in the original repositories in chronological order. Otherwise, any commits after an out-of-order commit (i.e. that have an earlier author date) won't be sorted correctly anymore.

Also, I'm not familiar enough with git to know if this is a safe operation or not. Some sources suggest that naive sorting by author date may break parent-child relationships.

Closes #6.

@vwkd vwkd marked this pull request as draft November 14, 2022 14:45
@vwkd vwkd marked this pull request as ready for review November 14, 2022 15:50
@vwkd vwkd closed this by deleting the head repository Jan 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Option to use author date instead of commit date for ordering
1 participant