[PATCHv2 0/3] Improve branch UI for setting upstream information
- From
Carlos Martín Nieto <cmn@elego.de>
- Date
- Aug 30, 2012, 17:23 UTC
- Message-ID
- <1346347393-8425-1-git-send-email-cmn@elego.de>
Hi all,
As a result of making --unset-upstream fail if the given branch doesn't exist, I discovered a copy-paste error in on the the tests in the patch after it, so I'm resending the whole thing.
The changes from the last reroll are the tightening of the situations where git will show an error message (not it's just if the branch is new and exists as remote-tracking) which I already sent as a reply in the other thread; and making --unset-upstream error out on bad input, which I already mentioned above.
cmn
Carlos Martín Nieto (3):
branch: introduce --set-upstream-to
branch: add --unset-upstream option
branch: deprecate --set-upstream and show help if we detect possible
mistaken useDocumentation/git-branch.txt | 14 ++++++++- builtin/branch.c | 60 +++++++++++++++++++++++++++++++++++++-- t/t3200-branch.sh | 67 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 137 insertions(+), 4 deletions(-)
-- 1.7.12.3.g0dd8ef6