when locking hunks only consider commits from applied branches

This commit is contained in:
Kiril Videlov 2024-03-05 18:32:59 +01:00
parent 82f102e106
commit 99df783a0a
No known key found for this signature in database

View File

@ -983,6 +983,7 @@ fn branches_with_hunk_locks(
let all_commits: Vec<VirtualBranchCommit> = branches let all_commits: Vec<VirtualBranchCommit> = branches
.clone() .clone()
.iter() .iter()
.filter(|branch| branch.active)
.flat_map(|vbranch| vbranch.commits.clone()) .flat_map(|vbranch| vbranch.commits.clone())
.collect(); .collect();