From: Matthieu Moy Date: Tue, 01 Feb 2011 09:01:25 GMT Subject: Re: [1.8.0] Change branch --set-uptream to take an argument Message-ID: In-Reply-To: Jay Soffian writes: > Currently it is very easy to misinvoke --set-upstream if you assume it > takes an argument: Your proposal sounds interesting, but I'd like to see something more global: right now, some commands take a --track option and other take a --set-upstream. In short, I'd like to see this --track deprecated (since it's not actually about remote-tracking ...). > (Though I'm not sure whether the options parser allows for both > --set-upstream and --set-upstream=) There are already many instances of this. When is mandatory, you can write either --option or --option= (like "git log --grep pattern" Vs "git log --grep=pattern"), and when is optional, you can write either --option alone, or --option= (like "git diff --color-words" and "git diff --color-words=."). -- Matthieu Moy http://www-verimag.imag.fr/~moy/