Re: [PATCH] Introduce <branch>@{tracked} as shortcut to the tracked branch
- From
Michael J Gruber <git@drmicha.warpmail.net>
- Date
- Sep 10, 2009, 14:17 UTC
- Message-ID
- <4AA90A67.401@drmicha.warpmail.net>
- In-Reply-To
- <alpine.DEB.1.00.0909101534440.8306@pacific.mpi-cbg.de>
Johannes Schindelin venit, vidit, dixit 10.09.2009 15:35:
Show 9 quoted lines
> Hi,
>
> On Thu, 10 Sep 2009, Johan Herland wrote:
>
>> I think I vote for the second option, renaming 'git branch --track'
>> to 'git branch --upstream', and s/@{tracked}/@{upstream}/.
>
> That does not make any sense, as that --track is to be understood as a
> verb. How do you "upstream a branch"?Well, that brunch also got its granma wrong tho his speeling is right ;)
Seriously: In
git branch --track branch1 branch2
who tracks whom if you read "--track" as a verb? So, "--track" can only be understood as an attribute to the main (first) argument, saying it's tracking something. Just as --upstream could be read as an attribute meaning "has an upstream".
(Note also how different this is from how -b works for checkout, -b actually taking an argument: git checkout -b branch1 branch2)
Cheers, Michael