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

Re: [PATCH v1] config/branch: state that <name>.merge is the remote ref

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 18, 2019, 01:32 UTC
Message-ID
<xmqqwod26dp7.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<20191016112822.1701-1-philipoakley@iee.email>
Philip Oakley <philipoakley@iee.email> writes:
Show 5 quoted lines
>  branch.<name>.merge::
>  	Defines, together with branch.<name>.remote, the upstream branch
> -	for the given branch. It tells 'git fetch'/'git pull'/'git rebase' which
> +	for the given branch. It defines the branch name _on the remote_,
> +	which may be different from the local branch name.

While I do agree with the goal of make things more clear, I'd avoid being overly redundant and giving irrelevant information (e.g. the copy you have locally may be made under arbitrary name that is different from the name used at the remote). After all, the users do not even need to know about the remote-tracking branch to understand this naming mechanism.

Perhaps something along this line instead:
    The name of the branch at the remote `branch.<name>.remote` that
    is used as the upstream branch for the given branch.  It tells
    `git fetch`, etc., which branch to merge and ...
Previous: Philip OakleyNext: Philip Oakley
Message 2 of 6 in “config/branch: state that <name>.merge is the remote ref”
  1. config/branch: state that <name>.merge is the remote refPhilip Oakley, Oct 16, 2019
  2. Junio C HamanoOct 18, 2019
  3. Philip OakleyOct 18, 2019
  4. config/branch: state that <name>.merge is the remote refPhilip Oakley, Oct 18, 2019
  5. Junio C HamanoOct 18, 2019
  6. Philip OakleyOct 19, 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.