From: Junio C Hamano Date: Thu, 22 Mar 2018 21:24:24 +0000 (-0700) Subject: Merge branch 'tg/worktree-create-tracking' into maint X-Git-Tag: v2.16.3~4 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/342215be59d3dc4b18db3d4a61fcfe4dc72149b7?hp=8bfeb0e42c3358374dc8ab14369e4280d8b12f5c Merge branch 'tg/worktree-create-tracking' into maint Hotfix for a recent topic. * tg/worktree-create-tracking: git-worktree.txt: fix indentation of example and text of 'add' command git-worktree.txt: fix missing ")" typo --- diff --git a/Documentation/git-worktree.txt b/Documentation/git-worktree.txt index 41585f535d..5ac3f68ab5 100644 --- a/Documentation/git-worktree.txt +++ b/Documentation/git-worktree.txt @@ -52,10 +52,11 @@ is linked to the current repository, sharing everything except working directory specific files such as HEAD, index, etc. `-` may also be specified as ``; it is synonymous with `@{-1}`. + -If is a branch name (call it `` and is not found, +If is a branch name (call it ``) and is not found, and neither `-b` nor `-B` nor `--detach` are used, but there does exist a tracking branch in exactly one remote (call it ``) -with a matching name, treat as equivalent to +with a matching name, treat as equivalent to: ++ ------------ $ git worktree add --track -b / ------------