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

[PATCH 1/2] t7508-status: status --porcelain ignores relative paths setting

From
Michael J Gruber <git@drmicha.warpmail.net>
Date
Dec 8, 2009, 10:12 UTC
Message-ID
<313cf8059f028c670b6f17bef412080146669b94.1260266027.git.git@drmicha.warpmail.net>
In-Reply-To
<cover.1260266027.git.git@drmicha.warpmail.net>
Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
---
 t/t7508-status.sh |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/t/t7508-status.sh b/t/t7508-status.sh
index 99a74bd..8e7727e 100755
--- a/t/t7508-status.sh
+++ b/t/t7508-status.sh
@@ -298,6 +298,24 @@ test_expect_success 'status -s with relative paths' '
 '
 
 cat > expect << \EOF
+ M dir1/modified
+A  dir2/added
+?? dir1/untracked
+?? dir2/modified
+?? dir2/untracked
+?? expect
+?? output
+?? untracked
+EOF
+
+test_expect_success 'status --porcelain ignores relative paths setting' '
+
+	(cd dir1 && git status --porcelain) > output &&
+	test_cmp expect output
+
+'
+
+cat > expect << \EOF
 # On branch master
 # Changes to be committed:
 #   (use "git reset HEAD <file>..." to unstage)
-- 
1.6.6.rc1.292.gd8fe
Previous: Michael J GruberNext: Michael J Gruber
Message 2 of 9 in “Add a few more status tests”
  1. 0/2 Add a few more status testsMichael J Gruber, Dec 8, 2009
  2. 1/2 t7508-status: status --porcelain ignores relative paths settingMichael J Gruber, Dec 8, 2009
  3. 2/2 t7508-status: test all modes with colorMichael J Gruber, Dec 8, 2009
  4. Jakub NarebskiDec 8, 2009
  5. Michael J GruberDec 8, 2009
  6. Junio C HamanoDec 9, 2009
  7. Junio C HamanoDec 9, 2009
  8. Michael J GruberDec 9, 2009
  9. Junio C HamanoDec 9, 2009

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.