git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Documentation: correctly spell git worktree --detach

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 22, 2017, 17:50 UTC
Message-ID
<xmqq7f4icdxm.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<20170222123442.923694-1-sandals@crustytoothpaste.net>
"brian m. carlson" <sandals@crustytoothpaste.net> writes:
Show 6 quoted lines
> 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.
Show 16 quoted lines
>  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.
>  
Previous: brian m. carlson
Message 4 of 4 in “Fwd: Typo in worktree man page”
  1. Casey RodarmorFeb 22, 2017
  2. brian m. carlsonFeb 22, 2017
  3. Documentation: correctly spell git worktree --detachbrian m. carlson, Feb 22, 2017
  4. Junio C HamanoFeb 22, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.