git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [1.8.0] Change branch --set-uptream to take an argument
@ 2011-02-01  6:57 Jay Soffian
  2011-02-01  9:01 ` Matthieu Moy
  2011-02-01 21:15 ` Junio C Hamano
  0 siblings, 2 replies; 8+ messages in thread
From: Jay Soffian @ 2011-02-01  6:57 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git

Proposal:

Currently it is very easy to misinvoke --set-upstream if you assume it
takes an argument:

e.g.

  (master)$ git branch --set-upstream origin/master
  Branch origin/master set up to track local branch master.

In order to make its usage unambiguous, and to allow it to be used w/o
specifying the current branch, require it to take an argument like so:

  (master)$ git branch --set-upstream=origin/master

(I've misinvoked it so often, I've had to train myself to always
invoke it this way: git branch master --set-upstream origin/master)

Risks:

Hands which have become trained to use it as it currently is, scripts, etc.

Migration plan:

Introduce the new syntax to the man page and git branch for 1.7.x and
emit a warning whenever the current syntax is used. In 1.8, break the
current syntax.

(Though I'm not sure whether the options parser allows for both
--set-upstream and --set-upstream=<arg>)

j.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-02-04  8:54 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-01  6:57 [1.8.0] Change branch --set-uptream to take an argument Jay Soffian
2011-02-01  9:01 ` Matthieu Moy
2011-02-01 21:14   ` Jay Soffian
2011-02-04  8:54     ` Stefan Haller
2011-02-01 21:15 ` Junio C Hamano
2011-02-01 21:27   ` Jay Soffian
2011-02-02  4:08     ` Miles Bader
2011-02-02  4:18       ` Jay Soffian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).