On Fri, Feb 28, 2020 at 5:54 PM Junio C Hamano <gitster@xxxxxxxxx> wrote: > * es/worktree-avoid-duplication-fix (2020-02-24) 3 commits > (merged to 'next' on 2020-02-25 at 74c612837a) > + worktree: don't allow "add" validation to be fooled by suffix matching > + worktree: add utility to find worktree by pathname > + worktree: improve find_worktree() documentation > > "git worktree add" used to get confused that the director to be > used to add a new worktreey, when given as a relative path, is > different from an existing one. This has been corrected. This description still has the problem with inserted text splitting the "y" off "directory". Did we want to go with the revised description suggested by [1]? In rare cases "git worktree add <path>" could think that <path> was already a registered worktree even when it wasn't and refuse to add the new worktree. This has been corrected. [1]: https://lore.kernel.org/git/CAPig+cR3H2qvCddWuWPNex=K-x0FyzKehpbOiv7W-s_4EAW1bQ@xxxxxxxxxxxxxx/