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

Re: git-merge: inconsistent manual page.

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 30, 2007, 18:39 UTC
Message-ID
<7vsl3sla5q.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<fg7b6o$k1f$1@ger.gmane.org>
Sergei Organov <osv@javad.com> writes:
Show 5 quoted lines
> git-merge has inconsistent manual page:
>
> 1. In the SYNOPSIS, there is [-m <msg>], but OPTIONS section lacks it.
>    The latter has just  description of <msg>, suggesting it could be
>    used without -m, but SYNOPSIS doesn't reflect this. 

This is not quite right, I am afraid. "git merge" used to take its parameters in quite an exotic order, and we still do support it as we do not break people's existing setups:

	git-merge "$message" HEAD $list_of_merged_refs

where the second parameter is always HEAD. This is the only form that accepts the message without -m (see ll.230- in the git-merge script).

But we do not _want_ to advertise this funny syntax. Humans and newly written scripts should express the above as:

	git merge -m "$message" $list_of_merged_refs
>    BTW, git-merge options are described in
>    Documentation/merge-options.txt that is also used fot git-pull
>    options, and it's not clear for me if git-pull supports [-m
>    <msg>]. Does it?

It shouldn't; the merge message is prepared by git-pull to describe what got merged from where for you (see the last few lines in the git-pull script).

> 2. In the SYNOPSIS, there is no <head> that is described in the
>    OPTIONS.
See above.  We do not want to advertise the crazy syntax.
Previous: Sergei OrganovNext: Junio C Hamano
Message 2 of 5 in “git-merge: inconsistent manual page.”
  1. Sergei OrganovOct 30, 2007
  2. Junio C HamanoOct 30, 2007
  3. Junio C HamanoOct 30, 2007
  4. Sergei OrganovOct 30, 2007
  5. Junio C HamanoOct 31, 2007

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.