git/builtin
Carlos Martín Nieto b347d06bf0 branch: deprecate --set-upstream and show help if we detect possible mistaken use
This interface is error prone, and a better one (--set-upstream-to)
exists. Add a message listing the alternatives and suggest how to fix
a --set-upstream invocation in case the user only gives one argument
which causes a local branch with the same name as a remote-tracking
one to be created. The typical case is

    git branch --set-upstream origin/master

when the user meant

    git branch --set-upstream master origin/master

assuming that the current branch is master. Show a message telling the
user how to undo their action and get what they wanted. For the
command above, the message would be

The --set-upstream flag is deprecated and will be removed. Consider using --track or --set-upstream-to
Branch origin/master set up to track local branch master.

If you wanted to make 'master' track 'origin/master', do this:

    git branch -d origin/master
    git branch --set-upstream-to origin/master

Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2012-08-30 12:07:39 -07:00
..
2012-07-23 20:55:21 -07:00
2012-07-22 12:55:07 -07:00
2012-06-15 14:27:35 -07:00
2012-04-18 16:17:42 -07:00
2012-06-28 15:19:32 -07:00
2012-07-09 09:02:19 -07:00
2012-07-22 12:55:07 -07:00
2011-03-22 10:16:54 -07:00
2011-03-22 10:16:54 -07:00
2011-12-28 11:32:36 -08:00
2011-12-22 11:27:26 -08:00
2011-03-22 10:16:54 -07:00
2011-03-22 10:16:54 -07:00
2011-03-22 11:43:27 -07:00
2011-03-22 10:16:54 -07:00
2012-05-20 18:48:10 -07:00
2012-07-22 12:55:07 -07:00
2012-07-22 12:55:07 -07:00
2011-03-09 23:52:56 -08:00
2011-05-31 12:19:11 -07:00
2011-03-22 10:16:54 -07:00
2011-08-25 14:42:11 -07:00