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

git-status and git-diff now very slow in project with a submodule

From
APAndy Parkins <andyparkins@gmail.com>
Date
May 20, 2010, 10:01 UTC
Message-ID
<ht3194$1vc$1@dough.gmane.org>
Hello,
I've just upgraded from 1.6.something to 1.7.1.  All very nice.

The new submodule reporting is nice too; but I'd like to be able to turn it off :-)

The problem is that I have a (relatively) small project as the supermodule, and a linux kernel clone as a submodule and an ffmpeg clone as a submodule. Now I used to be able to do git-status or git-diff and it would be instant, it now takes a number of seconds to report. I guess (but don't know), that it is the detection of "dirty" status in the submodule's that is slowing down the supermodule processing.

I wouldn't like to see the feature go, because in almost all circumstances it is exactly right; however, I'd like to be able to turn off dirty detection in submodules. Is this already possible, and I've just missed the configuration option?

One additional small point: why do untracked files in a submodule make the module dirty? I've often got a few "temp.ps" or "debug.log" or "backtrace.log" files lying around -- inappropriate to add to an ignore file, but they don't make my working directory dirty. "Dirty" in a working directory means uncommitted changes to tracked files, why does it mean something different in a submodule?

Andy
-- 
Dr Andy Parkins
andyparkins@gmail.com
Next: Stefan Naewe
Message 1 of 16 in “git-status and git-diff now very slow in project with a submodule”
  1. Andy ParkinsMay 20, 2010
  2. Stefan NaeweMay 20, 2010
  3. Andy ParkinsMay 20, 2010
  4. Michael J GruberMay 20, 2010
  5. Andy ParkinsMay 20, 2010
  6. Jens LehmannMay 20, 2010
  7. Andy ParkinsMay 20, 2010
  8. Nguyen Thai Ngoc DuyMay 21, 2010
  9. Junio C HamanoMay 20, 2010
  10. Andy ParkinsMay 20, 2010
  11. Junio C HamanoMay 20, 2010
  12. Jens LehmannMay 21, 2010
  13. Leo RazoumovMay 21, 2010
  14. Andreas SchwabMay 21, 2010
  15. Jens LehmannMay 22, 2010
  16. Jens LehmannMay 22, 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.