]> git.ipfire.org Git - thirdparty/git.git/commit
builtin/gc: move pruning of worktrees into a separate function
authorPatrick Steinhardt <ps@pks.im>
Wed, 7 May 2025 07:21:39 +0000 (09:21 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 7 May 2025 17:50:14 +0000 (10:50 -0700)
commitae76c1c99089903ce2b786a42a7e5598a7be5c5c
tree73e8295c7ff271c502ac70e6a6891dd463dce3fe
parente3a69d72b1e48b85f9dad8139797a6fe50d4059d
builtin/gc: move pruning of worktrees into a separate function

In a subsequent commit we will introduce a new "worktree-prune" task for
git-maintenance(1). To prepare for this, refactor the code that spawns
`git worktree prune` into a separate function.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/gc.c