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

Re: time to update with new packs

From
Junio C Hamano <junkio@cox.net>
Date
Oct 1, 2005, 07:18 UTC
Message-ID
<7vacht902k.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<12c511ca0509302140o4263020bsc337594609175173@mail.gmail.com>
Tony Luck <tony.luck@gmail.com> writes:
Show 6 quoted lines
> 1) Link the new pack files from Linus' objects/pack directory
> to my objects/pack directory.
>
> 2) $ GIT_DIR=. git prune-packed # in my directory
>
> 3) $ GIT_DIR=. git update-server-info # ditto

When everybody uses more recent clients, you could say "/pub/scm/.../torvalds/linux-2.6.git/objects" in your objects/info/alternates file and not worry about step (1). git native transport has known about the alternate mechanism since the inception. The alternate mechanism support in "git fetch" and "git clone" for rsync and http transports is a relatively recent addition (appeared just before 0.99.7).

So (1) is not necessary for git native transport once you have "alternate" file, but for other transports (1) is probably still helpful at this point.

Also, enabling hooks/post-update in your public repository would save you from worrying about (3), provided if the only way you update it is by pushing into it, which I think is what usually people are doing.

Previous: Tony Luck
Message 2 of 2 in “time to update with new packs”
  1. Tony LuckOct 1, 2005
  2. Junio C HamanoOct 1, 2005

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.