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

Re: git-diff opens too many files?

From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
Date
Nov 20, 2006, 15:32 UTC
Message-ID
<fcaeb9bf0611200732y777868c5lb9d9061a4522de97@mail.gmail.com>
In-Reply-To
<Pine.LNX.4.63.0611201620070.13772@wbgn013.biozentrum.uni-wuerzburg.de>
On 11/20/06, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
Show 14 quoted lines
> Hi,
>
> On Mon, 20 Nov 2006, Nguyen Thai Ngoc Duy wrote:
>
> > I got this error in a quite big (in files) repository:
> > error: open("vnexpress.net/Suc-khoe/2001/04/3B9AF976"): Too many open
> > files in system
> > fatal: cannot hash vnexpress.net/Suc-khoe/2001/04/3B9AF976
> >
> > The repository contained about 67.000 files and probably all were modified.
> > git version 1.4.4.rc1.g2bba
>
> What was the command line? "git diff" really is a wrapper around different
> programs...
"git diff" from working directory with no argument. The real command is
git diff |LANG=C grep '^-'|LANG=C grep -v '^--'|LANG=C sort|LANG=C uniq -c

(I squeezed blank lines, so I wanted to check that it just did that, nothing else)

> Ciao,
> Dscho
>
>
Previous: Johannes SchindelinNext: Johannes Schindelin
Message 3 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.