aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/branch.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2022-06-18 23:53:19 -0400
committerJunio C Hamano <gitster@pobox.com>2022-06-21 08:52:32 -0700
commitb2463fc30a43a43b5de788fa1611603f84097873 (patch)
tree2e8a684eb1d6d656414b69ca69b2c484525e7d0c /builtin/branch.c
parentbranch: fix branch_checked_out() leaks (diff)
downloadgit-b2463fc30a43a43b5de788fa1611603f84097873.tar.gz
git-b2463fc30a43a43b5de788fa1611603f84097873.zip
fetch: stop passing around unused worktrees variable
In 12d47e3b1f (fetch: use new branch_checked_out() and add tests, 2022-06-14), fetch's update_local_ref() function stopped using its "worktrees" parameter. It doesn't need it, since the branch_checked_out() function examines the global worktrees under the hood. So we can not only drop the unused parameter from that function, but also from its entire call chain. And as we do so all the way up to do_fetch(), we can see that nobody uses it at all, and we can drop the local variable there entirely. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/branch.c')
0 files changed, 0 insertions, 0 deletions