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

Re: [PATCH v2] git-submodule.txt: fix AsciiDoc formatting error

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 16, 2019, 19:25 UTC
Message-ID
<xmqq4l1cavr9.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<2ae16375ba185bcaceb2ba3e8843db495f0044a6.1568657575.git.liu.denton@gmail.com>
Denton Liu <liu.denton@gmail.com> writes:
> Break `--default` and `--branch` into their own separate invocations to
> make it obvious that these options are mutually exclusive.

That sounds even clearer than what the original wanted to do. Very good idea.

Show 14 quoted lines
> diff --git a/Documentation/git-submodule.txt b/Documentation/git-submodule.txt
> index 0ed5c24dc1..1f46380af2 100644
> --- a/Documentation/git-submodule.txt
> +++ b/Documentation/git-submodule.txt
> @@ -173,7 +173,8 @@ submodule with the `--init` option.
>  If `--recursive` is specified, this command will recurse into the
>  registered submodules, and update any nested submodules within.
>  --
> -set-branch ((-d|--default)|(-b|--branch <branch>)) [--] <path>::
> +set-branch (-b|--branch) <branch> [--] <path>::
> +set-branch (-d|--default) [--] <path>::
>  	Sets the default remote tracking branch for the submodule. The
>  	`--branch` option allows the remote branch to be specified. The
>  	`--default` option removes the submodule.<name>.branch configuration
Previous: Denton Liu
Message 6 of 6 in “git-submodule.txt: fix AsciiDoc formatting error”
  1. git-submodule.txt: fix AsciiDoc formatting errorDenton Liu, Sep 10, 2019
  2. Junio C HamanoSep 13, 2019
  3. Denton LiuSep 13, 2019
  4. Junio C HamanoSep 13, 2019
  5. git-submodule.txt: fix AsciiDoc formatting errorDenton Liu, Sep 16, 2019
  6. Junio C HamanoSep 16, 2019

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.