summaryrefslogtreecommitdiff
path: root/diff.h
diff options
context:
space:
mode:
authorLibravatar Eric Sunshine <sunshine@sunshineco.com>2018-08-28 17:20:21 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-08-30 09:28:02 -0700
commit45059e6468ab5710748c8827d5bf1f4c7c69d6d1 (patch)
treeaef9bf3305497bbe1f730bc42c0a4db86684b0f7 /diff.h
parentworktree: generalize delete_git_dir() to reduce code duplication (diff)
downloadtgif-45059e6468ab5710748c8827d5bf1f4c7c69d6d1.tar.xz
worktree: prepare for more checks of whether path can become worktree
Certain conditions must be met for a path to be a valid candidate as the location of a new worktree; for instance, the path must not exist or must be an empty directory. Although the number of conditions is small, new conditions will soon be added so factor out the existing checks into a separate function to avoid further bloating add_worktree(). Signed-off-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diff.h')
0 files changed, 0 insertions, 0 deletions