summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorLibravatar brian m. carlson <sandals@crustytoothpaste.net>2017-02-22 12:34:42 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-02-22 10:08:38 -0800
commit9993a7c5f132d4f7c9cf93509cba6737ca131ef4 (patch)
treed6dd24c7fcacb5d0b0f0a3920ff9171da2ecc75b /Documentation
parentworktree: add: suppress auto-vivication with --detach and no <branch> (diff)
downloadtgif-9993a7c5f132d4f7c9cf93509cba6737ca131ef4.tar.xz
Documentation: correctly spell git worktree --detach
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>
Diffstat (limited to 'Documentation')
-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.