worktree.c: find_worktree() search by path suffix
[gitweb.git] / Documentation / git-worktree.txt
index 27330c5a39fcdefe80551cab3ec2d1295d115434..7850deedf7fc57f17060dab6e5b89bd49ee74ce6 100644 (file)
@@ -129,6 +129,11 @@ OPTIONS
 <worktree>::
        Working trees can be identified by path, either relative or
        absolute.
++
+If the last path components in the working tree's path is unique among
+working trees, it can be used to identify worktrees. For example if
+you only have to working trees at "/abc/def/ghi" and "/abc/def/ggg",
+then "ghi" or "def/ghi" is enough to point to the former working tree.
 
 DETAILS
 -------