summaryrefslogtreecommitdiff
path: root/t/t2050-git-dir-relative.sh
diff options
context:
space:
mode:
authorLibravatar Eric Sunshine <sunshine@sunshineco.com>2020-06-10 02:30:45 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-06-10 10:54:49 -0700
commitdd9609a12e83969be6536853b2846866dafdfc98 (patch)
treea38dbe4a27e2b78efcef19a21f3f381387f9848f /t/t2050-git-dir-relative.sh
parentworktree: give "should be pruned?" function more meaningful name (diff)
downloadtgif-dd9609a12e83969be6536853b2846866dafdfc98.tar.xz
worktree: make high-level pruning re-usable
The low-level logic for removing a worktree is well encapsulated in delete_git_dir(). However, high-level details related to pruning a worktree -- such as dealing with verbosity and dry-run mode -- are not encapsulated. Factor out this high-level logic into its own function so it can be re-used as new worktree corruption detectors are added. Signed-off-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t2050-git-dir-relative.sh')
0 files changed, 0 insertions, 0 deletions