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

Re: Default remote branch for local branch

From
JWJosef Weidendorfer <josef.weidendorfer@gmx.de>
Date
Apr 3, 2006, 09:38 UTC
Message-ID
<200604031138.29227.Josef.Weidendorfer@gmx.de>
In-Reply-To
<4430D517.5020205@op5.se>
On Monday 03 April 2006 09:56, Andreas Ericsson wrote:
Show 12 quoted lines
> Josef Weidendorfer wrote:
> > 
> > Optionally, branching <new> off from <old> could add <new> as
> > topic branch of <old>: Thus, if you are on <old> and do git-pull,
> > you get <new> merged in.
> > 
> 
> This is clearly insane. If I'm on <old> and want to sync with my 
> upstream source that would be impossible without explicitly telling it 
> *not* to merge with <new>. Iow, this change would (possibly) simplify 
> for the one repo maintainer, but make things harder for the 30-odd 
> developers.

Yes. Therefore I put "optionally" above. But you are right, mixing up "merge upstream" and "merge downstream" into one config option is insane.

Some idea independent but related: I still think it is a better UI of a porcelain to try to note metainfo automatically, ie. storing somewhere that we branched one off another. What about adding "branch.topic" config option for this? "git-branch -t newtopic"/"git-checkout -b newtopic -t" would create a new topic branch, which is remembered in "branch.topic", and "git-pull -t" merges these topic branches? To specify that a remote branch is a topic branch of a given local branch (to be pulled into with "git-pull -t"), we could add "git-branch --add-topic <refspec>|<remoteURL>".

Josef
Previous: Andreas EricssonNext: Andreas Ericsson
Message 8 of 15 in “Default remote branch for local branch”
  1. Pavel RoskinApr 1, 2006
  2. Junio C HamanoApr 1, 2006
  3. Pavel RoskinApr 1, 2006
  4. Josef WeidendorferApr 2, 2006
  5. Junio C HamanoApr 2, 2006
  6. Josef WeidendorferApr 2, 2006
  7. Andreas EricssonApr 3, 2006
  8. Josef WeidendorferApr 3, 2006
  9. Andreas EricssonApr 3, 2006
  10. Junio C HamanoApr 3, 2006
  11. Josef WeidendorferApr 3, 2006
  12. Petr BaudisApr 14, 2006
  13. Josef WeidendorferApr 14, 2006
  14. Jakub NarebskiApr 1, 2006
  15. Jakub NarebskiApr 1, 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.