Skip to content

Commit

Permalink
rewrite: drop now-unnecessary updating of branches map
Browse files Browse the repository at this point in the history
Since we update all branches at the end now, we never update them in
several steps, so there are no intermediate locations we need to
remember.
  • Loading branch information
martinvonz committed Mar 26, 2024
1 parent 5e8d7f8 commit 0481e67
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/src/rewrite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -476,12 +476,6 @@ impl<'settings, 'repo> DescendantRebaser<'settings, 'repo> {
if let Some(branch_names) = self.branches.get(&old_commit_id).cloned() {
let mut branch_updates = vec![];
for branch_name in &branch_names {
for new_commit_id in &new_commit_ids {
self.branches
.entry(new_commit_id.clone())
.or_default()
.insert(branch_name.clone());
}
let local_target = self.mut_repo.get_local_branch(branch_name);
for old_add in local_target.added_ids() {
if *old_add == old_commit_id {
Expand Down

0 comments on commit 0481e67

Please sign in to comment.