Merge pull request #4011 from gitbutlerapp/reimplement-hunk-locking-code-1

Filter out unapplied branches
This commit is contained in:
Caleb Owens 2024-06-05 22:34:36 +02:00 committed by GitHub
commit 68a2293ae6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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()?;