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

Re: [PATCH] checkout: respect diff.ignoreSubmodules setting

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 25, 2010, 20:10 UTC
Message-ID
<7vlj7uqwr6.fsf@alter.siamese.dyndns.org>
In-Reply-To
<4C755778.7010306@web.de>
Jens Lehmann <Jens.Lehmann@web.de> writes:
Show 10 quoted lines
> Am 25.08.2010 12:34, schrieb Johannes Schindelin:
>>  ...
>> Let's respect that setting when 'git checkout' reports the uncommitted
>> changes, since it does nothing else than a 'git diff --name-status'.
>> 
>> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
>
> Thanks for fixing that!
>
> Acked-by: Jens Lehmann <Jens.Lehmann@web.de>
Makes sense.

I wondered if the new parameter to show_local_changes() should just be of type (struct checkout_opts *), so that other options given to checkout, not necessarily related to the diff generation, can influence the output further if we wanted to, but that kind of change can be done if and when it becomes necessary.

Thanks.  Perhaps we would want a new test or two in t2013?
Previous: Jens LehmannNext: Jens Lehmann
Message 3 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.