Re: [PATCHv2 3/3] branch: deprecate --set-upstream and show help if we detect possible mistaken use

2012-08-23 Thread Junio C Hamano
Carlos Martín Nieto writes: > The 'track' in the message is still not great, but it does fit with > the one above. Maybe if we make it say "If youw wanted [...] track the > remote-tracking branch 'origin/master'" it would be clearer? The verb "track" in the phrase "remote-tracking branch" means

[PATCHv2 3/3] branch: deprecate --set-upstream and show help if we detect possible mistaken use

2012-08-23 Thread Carlos Martín Nieto
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 t