Skip to content

Commit

Permalink
rewrite: don't collect set of heads to add unnecessarily
Browse files Browse the repository at this point in the history
  • Loading branch information
martinvonz committed Mar 30, 2024
1 parent c409492 commit bfa43d1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/src/rewrite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -493,11 +493,10 @@ impl<'settings, 'repo> DescendantRebaser<'settings, 'repo> {
let heads_to_add_expression = old_commits_expression
.parents()
.minus(&old_commits_expression);
let heads_to_add: HashSet<_> = heads_to_add_expression
let heads_to_add = heads_to_add_expression
.evaluate_programmatic(self.mut_repo)
.unwrap()
.iter()
.collect();
.iter();

let mut view = self.mut_repo.view().store_view().clone();
for commit_id in self.mut_repo.parent_mapping.keys() {
Expand Down

0 comments on commit bfa43d1

Please sign in to comment.