diff options
| author | Rubén Justo <rjusto@gmail.com> | 2023-03-27 00:33:09 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2023-03-27 09:40:14 -0700 |
| commit | d7f4ca61b51da5655df09277309380794ba1bd19 (patch) | |
| tree | 72d51b40a39ce4155d18ed6f30ff75a0984632f5 /t/helper/test-path-utils.c | |
| parent | branch: test for failures while renaming branches (diff) | |
| download | git-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 't/helper/test-path-utils.c')
0 files changed, 0 insertions, 0 deletions
