mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-28 03:55:02 +03:00
Merge pull request #4011 from gitbutlerapp/reimplement-hunk-locking-code-1
Filter out unapplied branches
This commit is contained in:
commit
68a2293ae6
@ -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()?;
|
||||
|
Loading…
Reference in New Issue
Block a user