aboutsummaryrefslogtreecommitdiffstats
path: root/diff.c
diff options
context:
space:
mode:
authorRubén Justo <rjusto@gmail.com>2023-03-27 00:33:09 +0200
committerJunio C Hamano <gitster@pobox.com>2023-03-27 09:40:14 -0700
commitd7f4ca61b51da5655df09277309380794ba1bd19 (patch)
tree72d51b40a39ce4155d18ed6f30ff75a0984632f5 /diff.c
parentbranch: test for failures while renaming branches (diff)
downloadgit-d7f4ca61b51da5655df09277309380794ba1bd19.tar.gz
git-d7f4ca61b51da5655df09277309380794ba1bd19.zip
branch: use get_worktrees() in copy_or_rename_branch()
Obtaining the list of worktrees, using get_worktrees(), is not a lightweight operation, because it involves reading from disk. Let's stop calling get_worktrees() in reject_rebase_or_bisect_branch() and in replace_each_worktree_head_symref(). Make them receive the list of worktrees from their only caller, copy_or_rename_branch(). Signed-off-by: Rubén Justo <rjusto@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diff.c')
0 files changed, 0 insertions, 0 deletions