mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-29 20:43:37 +03:00
when locking hunks only consider commits from applied branches
This commit is contained in:
parent
82f102e106
commit
99df783a0a
@ -983,6 +983,7 @@ fn branches_with_hunk_locks(
|
||||
let all_commits: Vec<VirtualBranchCommit> = branches
|
||||
.clone()
|
||||
.iter()
|
||||
.filter(|branch| branch.active)
|
||||
.flat_map(|vbranch| vbranch.commits.clone())
|
||||
.collect();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user