disallow providing multiple upstream branches to rebase, pull --rebase
PATCH v2 1/1 disallow providing multiple upstream branches to rebase, pull --rebase
It does not make sense to provide multiple upstream branches to either git pull --rebase, or to git rebase, so disallow both.
Signed-off-by Jay Soffian <[email protected]>
---
This time w/o breaking git rebase $UPSTREAM $BRANCH_TO_SWITCH_TO
git-pull.sh | 5 +++++ git-rebase.sh | 1 + 2 files changed, 6 insertions(+), 0 deletions(-)
git-pull.sh +5 -0
@@ -171,6 +171,11 @@ case "$merge_head" in echo >&2 "Cannot merge multiple branches into empty head" exit 1 fi + if test true = "$rebase" + then + echo >&2 "Cannot rebase onto multiple branches" + exit 1 + fi ;; esac
git-rebase.sh +1 -0
@@ -319,6 +319,7 @@ do esac shift done +test $# -gt 2 && usage # Make sure we do not have $GIT_DIR/rebase-apply if test -z "$do_merge"
Signature · 1 line
1.6.2.rc1.218.g1b4fab