From: David Aguilar Date: Sat, 20 Dec 2008 01:01:01 +0000 (-0800) Subject: git-mergetool: properly handle "git mergetool -- filename" X-Git-Tag: v1.6.0.6~4 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/ce2c3ebbc5a66e0370b3ab5b5611c2c390ddd6c0?ds=inline;hp=--cc git-mergetool: properly handle "git mergetool -- filename" Like many git commands, git-mergetool allows "--" to signal the end of option processing. This adds a missing "shift" statement so that this is correctly handled. Signed-off-by: David Aguilar Signed-off-by: Junio C Hamano --- ce2c3ebbc5a66e0370b3ab5b5611c2c390ddd6c0 diff --git a/git-mergetool.sh b/git-mergetool.sh index 94187c306c..d4078a6aff 100755 --- a/git-mergetool.sh +++ b/git-mergetool.sh @@ -296,6 +296,7 @@ do esac ;; --) + shift break ;; -*)