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

Re: What does it mean to have multiple upstream tracking branches?

From
Tao Klerks <tao@klerks.biz>
Date
Mar 7, 2022, 06:09 UTC
Message-ID
<CAPMMpoh96fHi7RbcMxrwkinyXiy-to6cnVACNKQV8C-7_vZH=g@mail.gmail.com>
In-Reply-To
<kl6l4k4ek73o.fsf@chooglen-macbookpro.roam.corp.google.com>
On Thu, Mar 3, 2022 at 11:24 PM Glen Choo <chooglen@google.com> wrote:
Show 13 quoted lines
>
> Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
>
> >
> > Can you point out some existing tests where we end up with multiple
> > *.merge values? I looked a bit and couldn't find any.
> >
> > Or maybe it's only possible to get into that state with some command we
> > have a test blind spot for?
>
> Based on the discussion on that thread you mentioned, I don't think we
> have any such tests. I think the only way to get into this state is to
> manually modify the config.

There is now a way to get into such a state for a new branch, assuming you were in such a state for an existing branch, and that is to use "--track=inherit" when creating a new branch, branching from one previously manually set up that way.

Show 8 quoted lines
>
> The only docs I could find on 'multiple values' are from
> Documentation/config/branch.txt:
>
>   branch.<name>.merge::
>     [...]
>     Specify multiple values to get an octopus merge.
>
Cool, hadn't seen that, thank you.
Previous: Josh Steadmon
Message 10 of 10 in “What does it mean to have multiple upstream tracking branches?”
  1. Tao KlerksMar 3, 2022
  2. Ævar Arnfjörð BjarmasonMar 3, 2022
  3. Glen ChooMar 3, 2022
  4. Ævar Arnfjörð BjarmasonMar 6, 2022
  5. Tao KlerksMar 7, 2022
  6. Junio C HamanoMar 6, 2022
  7. Tao KlerksMar 7, 2022
  8. Ævar Arnfjörð BjarmasonMar 7, 2022
  9. Josh SteadmonMar 8, 2022
  10. Tao KlerksMar 7, 2022

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.