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

[PATCH 0/2] checkout: diff.ignoreSubmodules: Add test and honor per submodule settings too

From
Jens Lehmann <jens.lehmann@web.de>
Date
Aug 28, 2010, 14:48 UTC
Message-ID
<4C7921BD.7030600@web.de>
In-Reply-To
<4C7591D7.9050508@web.de>
Am 25.08.2010 23:57, schrieb Jens Lehmann:
> Am 25.08.2010 22:10, schrieb Junio C Hamano:
>> Thanks.  Perhaps we would want a new test or two in t2013?
> 
> Sure, I will add some as soon as I find some time ...
Ok, here we go!

While writing the test I noticed it might be nice to use the configuration settings consistently. So I did a second patch teaching checkout to honor the submodule.*.ignore settings the same way diff and status do.

Two other issues surfaced while working on these patches:
1) We might have to teach the --ignore-submodules option to
   checkout too to be able to override the configuration on
   the command line and in scripts.
2) It might be a good idea to let "git status" honor the
   diff.ignoreSubmodules setting too, so that the output is
   consistent with that of diff and checkout.
Opinions?

(While I am willing to write the patches, I am not a user of these config options myself, so feedback from people who do use them is very much appreciated!)

Jens Lehmann (2):
  checkout: Add test for diff.ignoreSubmodules
  checkout: Use submodule.*.ignore settings from .git/config and
    .gitmodules
 Documentation/config.txt      |    3 ++-
 builtin/checkout.c            |    5 +++++
 t/t2013-checkout-submodule.sh |   23 +++++++++++++++++++++++
 3 files changed, 30 insertions(+), 1 deletions(-)
-- 
1.7.2.2.515.g13860
Previous: Jens LehmannNext: Jens Lehmann
Message 5 of 7 in “checkout: respect diff.ignoreSubmodules setting”
  1. checkout: respect diff.ignoreSubmodules settingJohannes Schindelin, Aug 25, 2010
  2. Jens LehmannAug 25, 2010
  3. Junio C HamanoAug 25, 2010
  4. Jens LehmannAug 25, 2010
  5. 0/2 checkout: diff.ignoreSubmodules: Add test and honor per submodule settings tooJens Lehmann, Aug 28, 2010
  6. 1/2 checkout: Add test for diff.ignoreSubmodulesJens Lehmann, Aug 28, 2010
  7. 2/2 checkout: Use submodule.*.ignore settings from .git/config and .gitmodulesJens Lehmann, Aug 28, 2010

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.