Skip to content

Commit

Permalink
rename new_compute_locks function
Browse files Browse the repository at this point in the history
  • Loading branch information
krlvi committed Jul 20, 2024
1 parent 591552f commit 8bfd897
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/gitbutler-branch-actions/src/status.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ pub fn get_applied_status(
.map(|branch| (branch.id, HashMap::new()))
.collect();

let locks = new_compute_locks(project_repository.repo(), &base_diffs, &virtual_branches)?;
let locks = compute_locks(project_repository.repo(), &base_diffs, &virtual_branches)?;

for branch in &mut virtual_branches {
let old_claims = branch.ownership.claims.clone();
Expand Down Expand Up @@ -199,7 +199,7 @@ pub fn get_applied_status(
})
}

fn new_compute_locks(
fn compute_locks(
repository: &git2::Repository,
unstaged_hunks_by_path: &HashMap<PathBuf, Vec<gitbutler_diff::GitHunk>>,
virtual_branches: &[Branch],
Expand Down

0 comments on commit 8bfd897

Please sign in to comment.