mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-27 14:47:05 +00:00
rebase: avoid an unnecessary lookup of parent commits
This commit is contained in:
parent
256988de65
commit
677081ef71
1 changed files with 1 additions and 1 deletions
|
@ -394,7 +394,7 @@ fn rebase_descendants_transaction(
|
|||
workspace_command.check_rewritable(old_commits.iter().ids())?;
|
||||
let (skipped_commits, old_commits) = old_commits
|
||||
.iter()
|
||||
.partition::<Vec<_>, _>(|commit| commit.parents() == new_parents);
|
||||
.partition::<Vec<_>, _>(|commit| commit.parent_ids().iter().eq(new_parents.iter().ids()));
|
||||
let num_skipped_rebases = skipped_commits.len();
|
||||
if num_skipped_rebases > 0 {
|
||||
writeln!(
|
||||
|
|
Loading…
Reference in a new issue