summaryrefslogtreecommitdiffstats
path: root/contrib/persistent-https
diff options
context:
space:
mode:
authorEric Sunshine <sunshine@sunshineco.com>2018-08-28 17:20:21 -0400
committerJunio C Hamano <gitster@pobox.com>2018-08-30 09:28:02 -0700
commit45059e6468ab5710748c8827d5bf1f4c7c69d6d1 (patch)
treeaef9bf3305497bbe1f730bc42c0a4db86684b0f7 /contrib/persistent-https
parent602aaed03f7f82323d88703d6fa2263a13c37907 (diff)
downloadgit-45059e6468ab5710748c8827d5bf1f4c7c69d6d1.tar.gz
git-45059e6468ab5710748c8827d5bf1f4c7c69d6d1.zip
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 'contrib/persistent-https')
0 files changed, 0 insertions, 0 deletions