From: Junio C Hamano Date: Mon, 24 Feb 2020 21:06:19 GMT Subject: Re: [PATCH 3/3] worktree: don't allow "add" validation to be fooled by suffix matching Message-ID: In-Reply-To: <20200224090848.54321-4-sunshine@sunshineco.com> Eric Sunshine 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.