From: Johannes Sixt <j.sixt@viscovery.net>
To: Greg Price <price@ksplice.com>
Cc: Junio C Hamano <gitster@pobox.com>, git@vger.kernel.org
Subject: Re: [PATCH] pack-refs: remove newly empty directories
Date: Tue, 06 Jul 2010 08:10:51 +0200 [thread overview]
Message-ID: <4C32C8EB.1090104@viscovery.net> (raw)
In-Reply-To: <1278368848-7037-1-git-send-email-price@ksplice.com>
Am 7/6/2010 0:27, schrieb Greg Price:
> In a large repository which uses directories to organize many refs,
> "git pack-refs --all --prune" does not improve performance so much
> as it should, unless we remove all the now-empty directories as well.
Before your patch, when you create a ref refs/heads/foo/bar, then pack
refs, then it is impossible to create a ref refs/heads/foo because
refs/heads/foo still exists as directory. And this is a good thing.
With your patch, is there any mechanism that inhibits that refs/heads/foo
is created when directory refs/heads/foo does not exist, but a packed ref
refs/heads/foo/bar is present?
-- Hannes
next prev parent reply other threads:[~2010-07-06 6:11 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-05 22:27 [PATCH] pack-refs: remove newly empty directories Greg Price
2010-07-06 3:02 ` Junio C Hamano
2010-07-06 3:25 ` Greg Price
2010-07-06 23:29 ` [PATCH v2] " Greg Price
2010-07-06 6:10 ` Johannes Sixt [this message]
2010-07-06 6:15 ` [PATCH] " Junio C Hamano
2010-07-06 18:49 ` Andreas Schwab
2010-07-06 19:13 ` Greg Price
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C32C8EB.1090104@viscovery.net \
--to=j.sixt@viscovery.net \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=price@ksplice.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).