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 /contrib/examples/git-svnimport.perl | |
parent | 2e8af499ff6e166a5f54f18cf3d1fa8f5d9bde38 (diff) |
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 'contrib/examples/git-svnimport.perl')
0 files changed, 0 insertions, 0 deletions