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

Re: [PATCH] Don't do status in submodules if status.SubmoduleSummary unset

From
Jens Lehmann <jens.lehmann@web.de>
Date
May 20, 2010, 20:14 UTC
Message-ID
<4BF59809.7080706@web.de>
In-Reply-To
<AANLkTikQDEwA7Iih9hniYzLfSGnPvZ9PTDNtSKfJPa9d@mail.gmail.com>
Am 20.05.2010 21:34, schrieb Alex Riesen:
Show 9 quoted lines
> On Thu, May 20, 2010 at 19:45, Jens Lehmann <Jens.Lehmann@web.de> wrote:
>> Am 20.05.2010 16:12, schrieb Alex Riesen:
>>> Maybe because we do a (kind of) gentle status run on submodules
>>> whether the status.SubmoduleSummary set or not.
>>
>> Yup, because checking a submodule for its dirtiness has to be done
>> no matter if the summary output is also wanted.
> 
> Yeah. Why?

Because summary output only describes what commits happened in the submodule (that operation is rather cheap). The status run is done to tell what changes in the submodules work tree have occurred since the last commit there (and for that we have to scan the whole tree).

Show 10 quoted lines
>>> Usually a background
>>> run of "git status" for every submodules goes unnoticed, just
>>> sometimes a submodule is a little too big.
>>>
>>> I tried this, but feels like a bit of overkill.
>>
>> This patch seems to disable submodule output completely for the default
>> case (when status.SubmoduleSummary is false) and breaks 17 test cases.
> 
> That's why I said it feels like overkill
I just wanted to confirm your feeling ;-)
Previous: Alex Riesen
Message 4 of 4 in “Don't do status in submodules if status.SubmoduleSummary unset”
  1. Don't do status in submodules if status.SubmoduleSummary unsetAlex Riesen, May 20, 2010
  2. Jens LehmannMay 20, 2010
  3. Alex RiesenMay 20, 2010
  4. Jens LehmannMay 20, 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.