git-checkout: do not allow -f and -m at the same time.
[gitweb.git] / git-checkout.sh
index 119bca1ffbfb8fb0dae404a8e7389f577aebc42c..eb28b291b6d1b7d77306bb3437b9955671e45d3a 100755 (executable)
@@ -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.
 #