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

Re: [PATCH v3 2/2] submodule: don't print status output with ignore=all

From
Jens Lehmann <jens.lehmann@web.de>
Date
Sep 4, 2013, 20:01 UTC
Message-ID
<522791AE.8070103@web.de>
In-Reply-To
<xmqqob89r8bc.fsf@gitster.dls.corp.google.com>
Am 03.09.2013 21:53, schrieb Junio C Hamano:
> Jens, I see 1/2 is the same as the previous one you already acked.
Yep.
> Does this update to 2/2 look good to you?  Sorry, but I lost track
> of the discussion that led to this reroll, hence a ping.

v3 fixes the bug Matthieu noticed, I only had some remarks to the new test Brian added. If you could replace his patch to t7401 with the following diff it's an ack from me on this one too.

-------------------------8<---------------------------
diff --git a/t/t7401-submodule-summary.sh b/t/t7401-submodule-summary.sh
index ac2434c..81ae7c9 100755
--- a/t/t7401-submodule-summary.sh
+++ b/t/t7401-submodule-summary.sh
@@ -104,6 +104,24 @@ EOF
 	test_cmp expected actual
 "

+test_expect_success 'no ignore=all setting has any effect' "
+	git config -f .gitmodules submodule.sm1.path sm1 &&
+	git config -f .gitmodules submodule.sm1.ignore all &&
+	git config submodule.sm1.ignore all &&
+	git config diff.ignoreSubmodules all &&
+	git submodule summary >actual &&
+	cat >expected <<-EOF &&
+* sm1 $head1...$head2 (1):
+  > Add foo3
+
+EOF
+	test_cmp expected actual &&
+	git config --unset diff.ignoreSubmodules &&
+	git config --remove-section submodule.sm1 &&
+	git config -f .gitmodules --remove-section submodule.sm1
+"
+
+
 commit_file sm1 &&
 head3=$(
 	cd sm1 &&
Previous: Junio C HamanoNext: Junio C Hamano
Message 6 of 13 in “submodule: Don't print status output with submodule.<name>.ignore=all”
  1. 0/2 submodule: Don't print status output with submodule.<name>.ignore=allbrian m. carlson, Sep 1, 2013
  2. 1/2 submodule: fix confusing variable namebrian m. carlson, Sep 1, 2013
  3. 2/2 submodule: don't print status output with ignore=allbrian m. carlson, Sep 1, 2013
  4. Jens LehmannSep 3, 2013
  5. Junio C HamanoSep 3, 2013
  6. Jens LehmannSep 4, 2013
  7. Junio C HamanoSep 4, 2013
  8. Jens LehmannSep 4, 2013
  9. Matthieu MoySep 4, 2013
  10. Jens LehmannSep 4, 2013
  11. Matthieu MoySep 5, 2013
  12. Matthieu MoySep 5, 2013
  13. brian m. carlsonSep 6, 2013

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.