]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'bc/worktree-doc-fix-detached'
authorJunio C Hamano <gitster@pobox.com>
Fri, 24 Feb 2017 18:48:10 +0000 (10:48 -0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 24 Feb 2017 18:48:10 +0000 (10:48 -0800)
Doc update.

* bc/worktree-doc-fix-detached:
  Documentation: correctly spell git worktree --detach

1  2 
Documentation/git-worktree.txt

index e257c19ebed96c3ab4877a752c3545e2d98c5d84,190e269515aeae3f58be7408a4747e2c56e57bf0..553cf8413f1792b2eec4c8827996e32f143b817a
@@@ -49,10 -49,9 +49,10 @@@ add <path> [<branch>]:
  
  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.
 +directory specific files such as HEAD, index, etc. `-` may also be
 +specified as `<branch>`; it is synonymous with `@{-1}`.
  +
- If `<branch>` is omitted and neither `-b` nor `-B` nor `--detached` used,
+ If `<branch>` is omitted and neither `-b` nor `-B` nor `--detach` used,
  then, as a convenience, a new branch based at HEAD is created automatically,
  as if `-b $(basename <path>)` was specified.