Thread (18 messages) flat view 18 messages, 5 authors, 2016-06-15

Re: [PATCH] Introduce <branch>@{tracked} as shortcut to the tracked branch

From: Michael J Gruber <hidden>
Date: 2016-06-15 22:47:23

Possibly related (same subject, not in this thread)

Johannes Schindelin venit, vidit, dixit 10.09.2009 15:35:
Hi,

On Thu, 10 Sep 2009, Johan Herland wrote:
quoted
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help