# Fwd: Typo in worktree man page

4 messages from 2017-02-22 to 2017-02-22. Participants: Casey Rodarmor, brian m. carlson, Junio C Hamano.
Thread: https://gitlist.dev/t/45190

## Casey Rodarmor, 2017-02-22 00:52

Subject: Fwd: Typo in worktree man page
Message-ID: <CANLPe+OaSnNb1jhAnFtMsOCfho0H7mHVHiXs7rqo6ZHNvRe3-w@mail.gmail.com>
URL: https://gitlist.dev/e/CANLPe%2BOaSnNb1jhAnFtMsOCfho0H7mHVHiXs7rqo6ZHNvRe3-w%40mail.gmail.com
In-Reply-To: <CANLPe+NVs9sJ7XQqvMabPBLg3DxS2Fyrrg3AzvZPBoWTPpnFzQ@mail.gmail.com>

```
Hi there,

The git worktree man page mentions the `--detached` flag in the
section on `add`, but the flag is actually called `--detach`.

Best,
Casey

```

## brian m. carlson, 2017-02-22 12:32

Subject: Re: Fwd: Typo in worktree man page
Message-ID: <20170222123249.a26lulx3jwxug7uf@genre.crustytoothpaste.net>
URL: https://gitlist.dev/e/20170222123249.a26lulx3jwxug7uf%40genre.crustytoothpaste.net
In-Reply-To: <CANLPe+OaSnNb1jhAnFtMsOCfho0H7mHVHiXs7rqo6ZHNvRe3-w@mail.gmail.com>

```
On Tue, Feb 21, 2017 at 04:52:11PM -0800, Casey Rodarmor wrote:
> Hi there,
> 
> The git worktree man page mentions the `--detached` flag in the
> section on `add`, but the flag is actually called `--detach`.

Thanks for reporting this.  I'll send a patch.
-- 
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | https://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: https://keybase.io/bk2204

```

## brian m. carlson, 2017-02-22 12:34

Subject: [PATCH] Documentation: correctly spell git worktree --detach
Message-ID: <20170222123442.923694-1-sandals@crustytoothpaste.net>
URL: https://gitlist.dev/e/20170222123442.923694-1-sandals%40crustytoothpaste.net
In-Reply-To: <CANLPe+OaSnNb1jhAnFtMsOCfho0H7mHVHiXs7rqo6ZHNvRe3-w@mail.gmail.com>

```
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>
---
 Documentation/git-worktree.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/git-worktree.txt b/Documentation/git-worktree.txt
index e257c19ebe..553cf8413f 100644
--- a/Documentation/git-worktree.txt
+++ b/Documentation/git-worktree.txt
@@ -52,7 +52,7 @@ is linked to the current repository, sharing everything except working
 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.
 

```

## Junio C Hamano, 2017-02-22 17:50

Subject: Re: [PATCH] Documentation: correctly spell git worktree --detach
Message-ID: <xmqq7f4icdxm.fsf@gitster.mtv.corp.google.com>
URL: https://gitlist.dev/e/xmqq7f4icdxm.fsf%40gitster.mtv.corp.google.com
In-Reply-To: <20170222123442.923694-1-sandals@crustytoothpaste.net>

```
"brian m. carlson" <sandals@crustytoothpaste.net> writes:

> 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>
> ---

Thanks, both.

>  Documentation/git-worktree.txt | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Documentation/git-worktree.txt b/Documentation/git-worktree.txt
> index e257c19ebe..553cf8413f 100644
> --- a/Documentation/git-worktree.txt
> +++ b/Documentation/git-worktree.txt
> @@ -52,7 +52,7 @@ is linked to the current repository, sharing everything except working
>  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.
>  

```
