mirror of
https://git.proxmox.com/git/libgit2
synced 2025-06-22 18:37:52 +00:00
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.
This commit is contained in:
parent
82d4c0e6b8
commit
3cc5ec94f8
@ -586,7 +586,7 @@ static int rebase_init_operations(
|
|||||||
(error = git_revwalk_hide(revwalk, git_annotated_commit_id(upstream))) < 0)
|
(error = git_revwalk_hide(revwalk, git_annotated_commit_id(upstream))) < 0)
|
||||||
goto done;
|
goto done;
|
||||||
|
|
||||||
git_revwalk_sorting(revwalk, GIT_SORT_REVERSE | GIT_SORT_TIME);
|
git_revwalk_sorting(revwalk, GIT_SORT_REVERSE);
|
||||||
|
|
||||||
while ((error = git_revwalk_next(&id, revwalk)) == 0) {
|
while ((error = git_revwalk_next(&id, revwalk)) == 0) {
|
||||||
if ((error = git_commit_lookup(&commit, repo, &id)) < 0)
|
if ((error = git_commit_lookup(&commit, repo, &id)) < 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user