Re: [PATCH v3 3/3] submodule: teach set-branch subcommand
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 7, 2019, 22:26 UTC
- Message-ID
- <xmqqy36rme0k.fsf@gitster-ct.c.googlers.com>
- In-Reply-To
- <91bb634dfad7f6a17bbed9eaf27f668326fca54e.1549534460.git.liu.denton@gmail.com>
Denton Liu <liu.denton@gmail.com> writes:
Show 13 quoted lines
> @@ -168,6 +169,12 @@ 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>:: > + 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 > + key, which causes the tracking branch to default to 'master'. > +-- > summary [--cached|--files] [(-n|--summary-limit) <n>] [commit] [--] [<path>...]:: > Show commit summary between the given commit (defaults to HEAD) and > working tree/index. For a submodule in question, a series of commits
The double-dash line you added must be replaced with an empty line. The existing double-dash is *not* a separator between the previous entry (i.e. update) and the next entry (i.e. summary). Rather, the body for 'update' is enclosed in a pair of double-dash lines as it has many paragraphs.