worktree: make setup of new HEAD distinct from worktree population
[gitweb.git] / Documentation / git-worktree.txt
index 32344598c3de54b17b9ae1f73d908252e354192b..332dd7734dfc3acca9e473b86bd0d6e30669750e 100644 (file)
@@ -51,9 +51,9 @@ Create `<path>` and checkout `<branch>` into it. The new working directory
 is linked to the current repository, sharing everything except working
 directory specific files such as HEAD, index, etc.
 +
-If `<branch>` is omitted and neither `-b` nor `-B` is used, then, as a
-convenience, a new branch based at HEAD is created automatically, as if
-`-b $(basename <path>)` was specified.
+If `<branch>` is omitted and neither `-b` nor `-B` nor `--detached` used,
+then, as a convenience, a new branch based at HEAD is created automatically,
+as if `-b $(basename <path>)` was specified.
 
 prune::