summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2017-02-22 12:34:42 +0000
committerJunio C Hamano <gitster@pobox.com>2017-02-22 10:08:38 -0800
commit9993a7c5f132d4f7c9cf93509cba6737ca131ef4 (patch)
treed6dd24c7fcacb5d0b0f0a3920ff9171da2ecc75b
parent5c942570fe2a48d8fde348e89392c2e9e23aa483 (diff)
downloadgit-9993a7c5f132d4f7c9cf93509cba6737ca131ef4.tar.gz
Documentation: correctly spell git worktree --detachbc/worktree-doc-fix-detached
The option is “--detach”, but we accidentally spelled it “--detached” at one point in the man page. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Reported-by: Casey Rodarmor <casey@rodarmor.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--Documentation/git-worktree.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/git-worktree.txt b/Documentation/git-worktree.txt
index 332dd7734d..190e269515 100644
--- a/Documentation/git-worktree.txt
+++ b/Documentation/git-worktree.txt
@@ -51,7 +51,7 @@ 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` 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.