Filter out unapplied branches

We don't have any unstaged changes for unapplied branches, so there is
nothing there to lock.
This commit is contained in:
Caleb Owens 2024-06-05 22:20:54 +02:00
parent 8aebcb4164
commit 67aad4e597
No known key found for this signature in database

View File

@ -1612,6 +1612,7 @@ fn new_compute_locks(
let branch_path_diffs = virtual_branches
.iter()
.filter(|branch| branch.applied)
.filter_map(|branch| {
let commit = repository.find_commit(branch.head.into()).ok()?;
let tree = commit.tree().ok()?;