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