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

[StGit PATCH] Test "stg status" with -M in stgit.diff-opts

From
Karl Hasselström <kha@treskal.com>
Date
Jul 8, 2008, 19:57 UTC
Message-ID
<20080708195720.25030.94355.stgit@yoghurt>
In-Reply-To
<20080708195508.25030.46828.stgit@yoghurt>

It used to fail, before the recent merge of the -O/--diff-opts removal, since the default value of that option was taken from stgit.diff-opts and passed on to stgit.git.tree_status() which couldn't handle it.

Signed-off-by: Karl Hasselström <kha@treskal.com>
---
 t/t0002-status.sh |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/t/t0002-status.sh b/t/t0002-status.sh
index 5e1e8ca..86ff419 100755
--- a/t/t0002-status.sh
+++ b/t/t0002-status.sh
@@ -186,4 +186,10 @@ test_expect_success 'Status after renaming a file' '
     test_cmp expected.txt output.txt
 '
 
+test_expect_success 'Status after renaming a file (with rename detection)' '
+    git config stgit.diff-opts -M &&
+    stg status > output.txt &&
+    test_cmp expected.txt output.txt
+'
+
 test_done
Previous: Karl Hasselström
Message 6 of 6 in “stgit error on status command”
  1. Jon SmirlJul 7, 2008
  2. Karl HasselströmJul 8, 2008
  3. Jon SmirlJul 8, 2008
  4. Karl HasselströmJul 8, 2008
  5. stg status rename fix (safe+experimental)Karl Hasselström, Jul 8, 2008
  6. Test "stg status" with -M in stgit.diff-optsKarl Hasselström, Jul 8, 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.