Re: [PATCH v2] Introduce %<branch> as shortcut to the tracked branch
- From
Michael J Gruber <git@drmicha.warpmail.net>
- Date
- Mar 19, 2009, 14:52 UTC
- Message-ID
- <49C25C4A.2010202@drmicha.warpmail.net>
- In-Reply-To
- <alpine.DEB.1.00.0903182343580.10279@pacific.mpi-cbg.de>
Johannes Schindelin venit, vidit, dixit 18.03.2009 23:46:
Show 29 quoted lines
> Hi, > > On Wed, 18 Mar 2009, Junio C Hamano wrote: > >> Johannes Schindelin <Johannes.Schindelin@gmx.de> writes: >> >>> Suggested by Pasky. >>> >>> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> >> >> In the longer term who suggested matters much less than why such a >> feature is desirable, how it is used, and without it what is impossible >> and/or cumbersome. What's the motivation behind this? >> >> You do not have to explain it to me, but you should explain it to the >> history that records this commit, and to the users who read doccos. > > And that's not all... Documentation updates and tests for % and %<branch> > are missing, too. > > My main motivation to make this patch was to see how fast I could come up > with something working that does not hurt my eyes. > > But I do not have time to do more today: My main project as well as Git > got accepted into the Google Summer of Code program, so I am even more > swamped than usually. > > So... if anybody feels like it, I would be very thankful for a proper > commit message, documentation and tests...
Just a quick note that I'm feeling like it... Though it seems this does not quite work with local branches, i.e. a branch created with
git checkout --track -b tracking tracked
with "tracked" being a local branch. I don't see why on first inspection of the code (branch.tracking.merge = refs/heads/tracked, so what), but maybe you will...
Michael