diff options
author | Eric Sunshine <sunshine@sunshineco.com> | 2020-06-10 02:30:45 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-06-10 10:54:49 -0700 |
commit | dd9609a12e83969be6536853b2846866dafdfc98 (patch) | |
tree | a38dbe4a27e2b78efcef19a21f3f381387f9848f /t/t3902-quoted.sh | |
parent | worktree: give "should be pruned?" function more meaningful name (diff) | |
download | tgif-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/t3902-quoted.sh')
0 files changed, 0 insertions, 0 deletions