Skip to content

Commit

Permalink
git-mergetool: properly handle "git mergetool -- filename"
Browse files Browse the repository at this point in the history
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 <davvid@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
David Aguilar authored and Junio C Hamano committed Dec 20, 2008
1 parent 0e73b3e commit ce2c3eb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions git-mergetool.sh
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ do
esac
;;
--)
shift
break
;;
-*)
Expand Down

0 comments on commit ce2c3eb

Please sign in to comment.