Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ee82845

Browse files
committed
rebase: don't ask for time sorting
`git-rebase--merge` does not ask for time sorting, but uses the default. We now produce the same default time-ordered output as git, so make us of that since it's not always the same output as our time sorting.
1 parent 6f4cf65 commit ee82845

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rebase.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ static int rebase_init_operations(
586586
(error = git_revwalk_hide(revwalk, git_annotated_commit_id(upstream))) < 0)
587587
goto done;
588588

589-
git_revwalk_sorting(revwalk, GIT_SORT_REVERSE | GIT_SORT_TIME);
589+
git_revwalk_sorting(revwalk, GIT_SORT_REVERSE);
590590

591591
while ((error = git_revwalk_next(&id, revwalk)) == 0) {
592592
if ((error = git_commit_lookup(&commit, repo, &id)) < 0)

0 commit comments

Comments
 (0)