Skip to content

Commit

Permalink
git-checkout: do not allow -f and -m at the same time.
Browse files Browse the repository at this point in the history
Instead of silently ignoring one over the other, complain on
this incompatible combination.

Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Nov 15, 2006
1 parent 0a3881d commit 897643c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions git-checkout.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
#
Expand Down

0 comments on commit 897643c

Please sign in to comment.