summaryrefslogtreecommitdiff
path: root/builtin/check-ignore.c
diff options
context:
space:
mode:
authorLibravatar Eric Sunshine <sunshine@sunshineco.com>2020-06-10 02:30:48 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-06-10 10:54:49 -0700
commitd179af679bd5f70506732e1c9242d367efc7ea42 (patch)
treeafc5747f0f4e12abff349799be4261180e12b196 /builtin/check-ignore.c
parentworktree: prune linked worktree referencing main worktree path (diff)
downloadtgif-d179af679bd5f70506732e1c9242d367efc7ea42.tar.xz
worktree: generalize candidate worktree path validation
"git worktree add" checks that the specified path is a valid location for a new worktree by ensuring that the path does not already exist and is not already registered to another worktree (a path can be registered but missing, for instance, if it resides on removable media). Since "git worktree add" is not the only command which should perform such validation ("git worktree move" ought to also), generalize the the validation function for use by other callers, as well. Signed-off-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/check-ignore.c')
0 files changed, 0 insertions, 0 deletions