Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
git-checkout: do not allow -f and -m at the same time.
[gitweb.git]
/
git-checkout.sh
diff --git
a/git-checkout.sh
b/git-checkout.sh
index 119bca1ffbfb8fb0dae404a8e7389f577aebc42c..eb28b291b6d1b7d77306bb3437b9955671e45d3a 100755
(executable)
--- a/
git-checkout.sh
+++ b/
git-checkout.sh
@@
-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.
#