Skip to content

Commit ce2c3eb

Browse files
davvidgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 0e73b3e commit ce2c3eb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

git-mergetool.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,7 @@ do
296296
esac
297297
;;
298298
--)
299+
shift
299300
break
300301
;;
301302
-*)

0 commit comments

Comments
 (0)