Code

Cope better with a _lot_ of packs
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Fri, 15 May 2009 18:52:47 +0000 (20:52 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 21 May 2009 01:23:06 +0000 (18:23 -0700)
commitfd73ccf27956f24dc0db9acd4ff7d9dcd5e41bfb
tree8da9d8c2c940b99abe6b7dfecdc3f8693f3e20bc
parente64c1b0053f2dc4fc5b434a9806b90318bac9592
Cope better with a _lot_ of packs

You might end up with a situation where you have tons of pack files, e.g.
when using hg2git.  In this situation, all kinds of operations may
end up with a "too many files open" error.  Let's recover gracefully from
that.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Looks-right-to-me-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sha1_file.c