From: Andreas Ericsson <ae@op5.se>
To: Bill Lear <rael@zopyra.com>
Cc: git@vger.kernel.org
Subject: Re: When to repack?
Date: Wed, 31 Jan 2007 14:01:41 +0100 [thread overview]
Message-ID: <45C09335.6010601@op5.se> (raw)
In-Reply-To: <17856.37016.341839.397309@lisa.zopyra.com>
Bill Lear wrote:
> We have a company repo used by many people throughout the day. When/how
> can I repack this? I have come to adopt this approach:
>
> % mv project project.pack
> % cd project.pack
> % GIT_DIR=. git repack -a -d
> % cd ..
> % mv project.pack project
>
Renaming the directory isn't necessary. The packs won't be used until they
have a .idx file. That .idx-file is written after the packfile, so any
operations on the repo will simply use the old, loose, objects before the
packing is completed.
The worst thing that can happen is that an object about to be fetched is
deleted in its loose version before the upload-pack program can open it,
but that's no worse than having the entire directory being moved out from
under it.
On a side-note, this is a grade A example of something that should typically
be done sunday night at 4am.
--
Andreas Ericsson andreas.ericsson@op5.se
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231
next prev parent reply other threads:[~2007-01-31 13:01 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-31 12:50 When to repack? Bill Lear
2007-01-31 12:58 ` Jakub Narebski
2007-01-31 13:01 ` Andreas Ericsson [this message]
2007-01-31 15:19 ` Johannes Schindelin
2007-01-31 15:36 ` Shawn O. Pearce
-- strict thread matches above, loose matches on Subject: below --
2008-02-29 10:55 Paul Gardiner
2008-02-29 11:47 ` Karl Hasselström
2008-02-29 13:22 ` Jakub Narebski
2008-03-01 1:00 ` Xavier Maillard
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=45C09335.6010601@op5.se \
--to=ae@op5.se \
--cc=git@vger.kernel.org \
--cc=rael@zopyra.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).