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

[PATCH] t7060: actually test "git diff-index --cached -M"

From
MPMatthieu Prat <matthieuprat@gmail.com>
Date
Sep 2, 2015, 18:12 UTC
Message-ID
<1441217575-45474-1-git-send-email-matthieuprat@gmail.com>

A test was designed for "git diff-index --cached -M" but the command is run without the "-M" option (which makes the test essentially identical to its preceding counterpart).

Give the command the option it deserves and the test a raison d'être.
Signed-off-by: Matthieu Prat <matthieuprat@gmail.com>
---
 t/t7060-wtstatus.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/t/t7060-wtstatus.sh b/t/t7060-wtstatus.sh
index 741ec08..32d8176 100755
--- a/t/t7060-wtstatus.sh
+++ b/t/t7060-wtstatus.sh
@@ -106,7 +106,7 @@ test_expect_success 'git diff-index --cached -M shows 2 added + 1 unmerged' '
 	A	THREE
 	A	TWO
 	EOF
-	git diff-index --cached --name-status HEAD >actual &&
+	git diff-index --cached -M --name-status HEAD >actual &&
 	test_cmp expected actual
 '
 
-- 
2.5.0
Next: Junio C Hamano
Message 1 of 2 in “t7060: actually test "git diff-index --cached -M"”
  1. t7060: actually test "git diff-index --cached -M"Matthieu Prat, Sep 2, 2015
  2. Junio C HamanoSep 2, 2015

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.