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

Re: [RFC/PATCH] Per branch properties for pull

From
SSanti <sbejar@gmail.com>
Date
Jul 24, 2006, 12:58 UTC
Message-ID
<8aa486160607240558n2b22c918v40cfcb26ed046472@mail.gmail.com>
In-Reply-To
<7vmzaze9xj.fsf@assigned-by-dhcp.cox.net>
2006/7/24, Junio C Hamano <junkio@cox.net>:
Show 12 quoted lines
> Santi Béjar <sbejar@gmail.com> writes:
>
> > It extracts all the information for pull from the config file.
> >
> > If you have a config file as:
> >
> > [branch "master"]
> >         remote=origin
> >         merge=next          #the remote name
> >         octopus=octopus
> >         twohead=recursive
> >
[...]
Show 7 quoted lines
> I am in general in agreement with this line of thought and had
> an impression that many on the list wanted to have per-branch
> configuration.  I am a bit too tired now so I'd just let you
> know I am interested but would not apply it tonight.
>
> Opinions?  Comments?  Anything missing or objectionable on
> Santi's patch from the list?

Actually my patch is a RFC to agree on the config semantics, (although I do not mind if committed to "pu" :) :

.- are remote/merge good names?
.- the merge key is the name of the remote branch.
.- are the octopus and twohead OK?
.- for a local merge, is remote=. OK?
.- "git pull ." to mean: do not fetch anything but merge the default branch?
.- for the integrator case:
   * is the "merge= rembranch from remote" OK?
   * "git pull remotename" should read the branch properties if
branch.$curr_branch.remote=remotename?
   * It could be usefull to have a git-merge-seq that performs a
twohead merge sequentially instead of an octopus.

The patch as is works for me and it currently depends on the remote config being in .git/config.

It only touchs git-pull, just to have a working prototype of the semantics and to minimize the breakage, but it could be that it should be integrated in the git-parse-remote.

Santi
Previous: Junio C Hamano
Message 3 of 3 in “Per branch properties for pull”
  1. Per branch properties for pullSanti Béjar, Jul 21, 2006
  2. Junio C HamanoJul 24, 2006
  3. SantiJul 24, 2006

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.