git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: pack count on repo.or.cz [was "Medium term dreams"]

From
Petr Baudis <pasky@suse.cz>
Date
Sep 2, 2008, 11:15 UTC
Message-ID
<20080902111531.GL10360@machine.or.cz>
In-Reply-To
<20080902011433.GA12682@coredump.intra.peff.net>
On Mon, Sep 01, 2008 at 09:14:33PM -0400, Jeff King wrote:
Show 8 quoted lines
> On Tue, Sep 02, 2008 at 03:04:10AM +0200, Petr Baudis wrote:
> 
> > Unfortunately, I'm not aware how to decreate the packs count with
> > current Git without losing _any_ objects. So yes, you could say that
> > this is an artifact of the forking infrastructure - we just can't afford
> > to lose objects.
> 
> Hmm, I thought that was the point of adding the "-A" flag to git-repack.
Ok, I did
	git repack -A -d
in repo.or.cz's git.git. What next? I have brand-new
	-rw-rw-r-- 1 root root  1314056 2008-09-02 13:07 pack-d19ca8b0cfd0e3357c475a3e96ce55b9f7195667.idx
	-rw-rw-r-- 1 root root 17344999 2008-09-02 13:07 pack-d19ca8b0cfd0e3357c475a3e96ce55b9f7195667.pack

but all the old packs too; git repack didn't delete anything, git prune-packed seems to have no effect either.

Show 6 quoted lines
> Though an even simpler solution, since you control all of the repos, is
> to just temporarily add references from the "parent" of the fork to
> every ref of every forked child. Then do the repack in the parent, which
> should then contain all of the objects for all of the children, delete
> the temporary references, and prune in the children (who should see most
> of their objects now in the parent).

So not just refs but also alternates? What if someone accesses the reposiory at that moment? I would also need to make the symlinks quite densely to avoid refs/forkee/-induced loops.

I might as well just use a common repository for all the forks then. But this does not scale at all for dumb transports, does it?

-- 
				Petr "Pasky" Baudis
The next generation of interesting software will be done
on the Macintosh, not the IBM PC.  -- Bill Gates
Previous: Jeff KingNext: Jeff King
Message 7 of 12 in “Medium term dreams”
  1. Junio C HamanoSep 1, 2008
  2. pack count on repo.or.cz [was "Medium term dreams"]Jeff King, Sep 2, 2008
  3. Petr BaudisSep 2, 2008
  4. Jeff KingSep 2, 2008
  5. Junio C HamanoSep 2, 2008
  6. Jeff KingSep 2, 2008
  7. Petr BaudisSep 2, 2008
  8. Jeff KingSep 2, 2008
  9. Petr BaudisSep 2, 2008
  10. Johannes SixtSep 2, 2008
  11. Petr BaudisSep 3, 2008
  12. Mike HommeySep 4, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.