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, 23:11 UTC
Message-ID
<xmqq8sphodi6.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<c96f4dbd-ebc6-b743-716e-e1e17333c06b@iee.email>
Philip Oakley <philipoakley@iee.email> writes:
Show 6 quoted lines
> branch.<name>.merge::
>     Defines, for the local branch <name>, the upstream branch ref
>     _on the remote_ (as given by branch.<name>.remote).
>     The upstream ref may be different from the local branch ref.
>
> optionally s/different from/ same as/ ?

That "optionally" part is exactly why I said "upstream and remote tracking names may or may not differ is irrelevant information".

Show 6 quoted lines
>>      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 ...
>>
> If this, should we also say it (the key value) is that of the upstream
> branch _ref_?

Yeah, that makes it clear that readers should not write "master" and use "refs/heads/master" instead. It may even be more (technically) correct to say just "ref" without branch (this ref does not have to be a branch at the remote repository at all). I am not sure if we want to go that far to make it more correct and also make it hint that using a non-branch ref is a valid configuration to readers, but I agree it is a good idea to avoid saying "name" (which implies that "master" is OK, which is not).

Thanks.
Previous: Philip OakleyNext: Philip Oakley
Message 5 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.