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

Re: git-diff opens too many files?

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Nov 20, 2006, 15:48 UTC
Message-ID
<Pine.LNX.4.63.0611201646480.13772@wbgn013.biozentrum.uni-wuerzburg.de>
In-Reply-To
<fcaeb9bf0611200732y777868c5lb9d9061a4522de97@mail.gmail.com>
Hi,
On Mon, 20 Nov 2006, Nguyen Thai Ngoc Duy wrote:
> git diff |LANG=C grep '^-'|LANG=C grep -v '^--'|LANG=C sort|LANG=C uniq -c

I looked in the code, but nothing jumps into my eyes. There is a place where files are mmap()ed, but AFAICT they are unmmap()ed just after diffing. Could you run it with strace and find unclosed open calls?

Ciao, Dscho

Previous: Nguyen Thai Ngoc DuyNext: Linus Torvalds
Message 4 of 7 in “git-diff opens too many files?”
  1. Nguyen Thai Ngoc DuyNov 20, 2006
  2. Johannes SchindelinNov 20, 2006
  3. Nguyen Thai Ngoc DuyNov 20, 2006
  4. Johannes SchindelinNov 20, 2006
  5. Linus TorvaldsNov 20, 2006
  6. Junio C HamanoNov 20, 2006
  7. Junio C HamanoNov 20, 2006

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.