git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] git-mergetool: properly handle "git mergetool -- filename"

From
David Aguilar <davvid@gmail.com>
Date
Dec 20, 2008, 01:01 UTC
Message-ID
<593cce2ad8b4d21995b24f0186e846d98306ae60.1229734788.git.davvid@gmail.com>

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>
---
 git-mergetool.sh |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/git-mergetool.sh b/git-mergetool.sh
index 94187c3..d4078a6 100755
--- a/git-mergetool.sh
+++ b/git-mergetool.sh
@@ -296,6 +296,7 @@ do
 	    esac
 	    ;;
 	--)
+	    shift
 	    break
 	    ;;
 	-*)
-- 
1.6.1.rc3.38.gec9f0
Next: Junio C Hamano
Message 1 of 2 in “git-mergetool: properly handle "git mergetool -- filename"”
  1. git-mergetool: properly handle "git mergetool -- filename"David Aguilar, Dec 20, 2008
  2. Junio C HamanoDec 20, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.