Browse Source

git-checkout: do not allow -f and -m at the same time.

Instead of silently ignoring one over the other, complain on
this incompatible combination.

Signed-off-by: Junio C Hamano <junkio@cox.net>
maint
Junio C Hamano 18 years ago
parent
commit
897643cc79
  1. 5
      git-checkout.sh

5
git-checkout.sh

@ -77,6 +77,11 @@ while [ "$#" != "0" ]; do @@ -77,6 +77,11 @@ while [ "$#" != "0" ]; do
esac
done

case "$force$merge" in
11)
die "git checkout: -f and -m are incompatible"
esac

# The behaviour of the command with and without explicit path
# parameters is quite different.
#

Loading…
Cancel
Save