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