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 > >