mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-20 16:11:46 +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
|
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();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user