From: Johannes Schindelin Date: Mon, 20 Nov 2006 15:48:24 GMT Subject: Re: git-diff opens too many files? Message-ID: In-Reply-To: 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