From: Junio C Hamano <junkio@cox.net>
To: git@vger.kernel.org
Subject: Re: [PATCH 0/4] Add git-pack-intersect
Date: Wed, 09 Nov 2005 16:15:17 -0800 [thread overview]
Message-ID: <7vy83x73ze.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: <43728523.1040209@etek.chalmers.se> (Lukas =?iso-2022-jp-2?B?U2FuZHN0chsuQRtOdm0ncw==?= message of "Thu, 10 Nov 2005 00:24:19 +0100")
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=iso-2022-jp-2, Size: 924 bytes --]
Lukas Sandstr^[.A^[Nvm <lukass@etek.chalmers.se> writes:
> Perhaps if git-daemon ever does caching of packfiles, removing the smaller
> packfiles might not be optimal.
Ah, that reminds me of something.
I did not advertise it too much, but you can put a prepackaged
packs in $GIT_DIR/pack-cache/ and it is used when upload-pack
notices it is creating that exact pack.
This is useless for ordinary repository, but can be useful for
historical repositories whose heads/tags never change (e.g. the
Linux kernel repository resurrected from bkcvs). There you
could:
$ git repack -a -d
$ ln $GIT_DIR/objects/pack/pack-* $GIT_DIR/pack-cache/.
and a clone request would feed the pack, without regenerating
the pack data from scratch. upload-pack still reads, sorts and
computes SHA1 hash of the list of objects to find the pack name,
but that is a fairly quick operation, compared to the rest of
the pack generation process.
next prev parent reply other threads:[~2005-11-10 0:15 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-09 1:20 [PATCH 0/4] Add git-pack-intersect Lukas Sandström
2005-11-09 1:22 ` [PATCH 1/4] " Lukas Sandström
2005-11-09 1:23 ` [PATCH 2/4] Add documentation for git-pack-intersect Lukas Sandström
2005-11-09 1:24 ` [PATCH 3/4] Add git-pack-intersect to .gitignore Lukas Sandström
2005-11-09 1:25 ` [PATCH 4/4] Make git-repack use git-pack-intersect Lukas Sandström
2005-11-09 11:19 ` [PATCH 0/4] Add git-pack-intersect Petr Baudis
2005-11-09 11:58 ` Andreas Ericsson
2005-11-09 23:24 ` Lukas Sandström
2005-11-10 0:15 ` Junio C Hamano [this message]
2005-11-09 23:16 ` [PATCH] Rename git-pack-intersect to git-pack-redundant Lukas Sandström
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=7vy83x73ze.fsf@assigned-by-dhcp.cox.net \
--to=junkio@cox.net \
--cc=git@vger.kernel.org \
/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).