Merge branch 'cn/branch-set-upstream-to'
commit83ce1764496d90a5ef45b0a109ab5fc222a62199
authorJunio C Hamano <gitster@pobox.com>
Mon, 10 Sep 2012 22:43:07 +0000 (10 15:43 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 10 Sep 2012 22:43:07 +0000 (10 15:43 -0700)
treef968fd2ac1c2004a21af138b998e637a63f7d101
parentc2b927932d90588e7094100b470b9e94bd769afe
parentb347d06bf097aca5effd07871adf4d0c8a7c55bd
Merge branch 'cn/branch-set-upstream-to'

"git branch --set-upstream origin/master" is a common mistake to
create a local branch 'origin/master' and set it to integrate with
the current branch.  With a plan to deprecate this option, introduce
"git branch (-u|--set-upstream-to) origin/master" that sets the
current branch to integrate with 'origin/master' remote tracking
branch.

* cn/branch-set-upstream-to:
  branch: deprecate --set-upstream and show help if we detect possible mistaken use
  branch: add --unset-upstream option
  branch: introduce --set-upstream-to
builtin/branch.c
t/t3200-branch.sh