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

Re: [PATCH] branch: optionally setup branch.*.merge from upstream local branches

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Feb 18, 2008, 13:24 UTC
Message-ID
<alpine.LSU.1.00.0802181320200.30505@racer.site>
In-Reply-To
<76718490802180440o3041b1ffh4764199e2aeaa52b@mail.gmail.com>
Hi,
On Mon, 18 Feb 2008, Jay Soffian wrote:
Show 11 quoted lines
> On Feb 18, 2008 7:14 AM, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
> 
> > On Mon, 18 Feb 2008, Jay Soffian wrote:
> >
> > > -static int branch_track = 1;
> > > +static enum branch_track branch_track = BRANCH_TRACK_FALSE;
> >
> > That is a clear regression.
> 
> Perhaps. It's consistent with builtin-checkout.c though (which was 
> initializing it to 0). Who to believe?

Well, in the way _you_ implemented it, it is a clear regression, since _your_ patch changes the 1 to a 0.

Show 7 quoted lines
> > Personally, I have no problem with typing "git merge <branch>" in your 
> > workflow.  I would even avoid saying "git pull" for obviously-local 
> > branches, because I would have forgotten which branch it tracked 
> > originally.
> 
> Um, well, apply this patch, set branch.autosetupmerge=always and then 
> branch.*.merge will tell you which branch it tracked originally. :-)

That's what I meant. Rather than _looking it up_, and then saying "git pull", I'd do "git merge <branch>" _directly_. One command. Not two.

> Aside, then how do you figure out the upstream branch is if you've 
> forgotten?
Well, that's easy.  I would look at the output of "git show-branch --all".

But then, I usually do not care too much which branch I branched off, but which branch to merge with/rebase on.

Ciao, Dscho

Previous: Jay Soffian
Message 4 of 4 in “branch: optionally setup branch.*.merge from upstream local branches”
  1. branch: optionally setup branch.*.merge from upstream local branchesJay Soffian, Feb 18, 2008
  2. Johannes SchindelinFeb 18, 2008
  3. Jay SoffianFeb 18, 2008
  4. Johannes SchindelinFeb 18, 2008

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.