Re: [PATCH 3/3] worktree: don't allow "add" validation to be fooled by suffix matching
From: Junio C Hamano <hidden> Date: 2020-02-24 21:06:24
Eric Sunshine [off-list ref] writes:
Avoid the problem of potential accidental matching against an existing
worktree by instead taking advantage of find_worktree_by_path() which
matches paths deterministically, without applying any sort of magic
shorthand matching performed by find_worktree().
Combination of 2/3 and 3/3 makes perfect sense as "fix once and for
all" solution.
Thanks.