[PATCH] gc: support temporarily preserving garbage

2014-11-13 Thread Brodie Rao
file mmap()ed, it could crash with a SIGBUS error on Linux. Signed-off-by: Brodie Rao --- .gitignore | 1 + Documentation/config.txt | 20 + Documentation/git-gc.txt | 7 Documentation/git-prune-garbage.t

[PATCH] sha1_name: don't resolve refs when core.warnambiguousrefs is false

2014-01-06 Thread Brodie Rao
This change ensures get_sha1_basic() doesn't try to resolve full hashes as refs when ambiguous ref warnings are disabled. This provides a substantial performance improvement when passing many hashes to a command (like "git rev-list --stdin") when core.warnambiguousrefs is false. The check incurs 6

Re: [PATCH] sha1_name: don't resolve refs when core.warnambiguousrefs is false

2014-01-06 Thread Brodie Rao
On Mon, Jan 6, 2014 at 7:32 PM, Brodie Rao wrote: > This change ensures get_sha1_basic() doesn't try to resolve full hashes > as refs when ambiguous ref warnings are disabled. > > This provides a substantial performance improvement when passing many > hashes to a command

[PATCH] sha1_name: don't resolve refs when core.warnambiguousrefs is false

2014-01-07 Thread Brodie Rao
he check incurs 6 stat()s for every hash supplied, which can be costly over NFS. Signed-off-by: Brodie Rao --- sha1_name.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sha1_name.c b/sha1_name.c index e9c2999..10bd007 100644 --- a/sha1_name.c +++ b/sha1_name.c @@ -451,9 +

Re: [PATCH] gc: support temporarily preserving garbage

2014-12-03 Thread Brodie Rao
On Mon, Nov 17, 2014 at 1:34 PM, Jeff King wrote: > On Fri, Nov 14, 2014 at 03:01:05PM -0800, Junio C Hamano wrote: > >> > 23 files changed, 375 insertions(+), 7 deletions(-) >> [...] >> >> I am not sure if this much of code churn is warranted to work around >> issues that only happen on reposito