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

Re: [PATCH] git-repack-script: Add option to repack all objects.

From
FSFrank Sorenson <frank@tuxrocks.com>
Date
Aug 29, 2005, 18:59 UTC
Message-ID
<43135AF7.6070705@tuxrocks.com>
In-Reply-To
<7vll2kbqa4.fsf_-_@assigned-by-dhcp.cox.net>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Junio C Hamano wrote:
Show 13 quoted lines
> This originally came from Frank Sorenson but with a bit of
> rework to allow future enhancement to the command without
> changing the external interface for removal part.
> 
> With the '-a' option, all objects in the current repository are
> packed into a single pack.  When the '-d' option is given at the
> same time, existing packs that were made redundant by this round
> of repacking are deleted.
> 
> Since we currently have only two repacking strategies, one '-a'
> (everything into one) and the other not '-a' (incrementally pack
> only the unpacked ones), '-d' is meaningful only used with '-a'
> and removes all the existing packs before repacking for now.

Thank you for explaining the reasoning, and reworking the patch. This does make more sense, and I can see the logic for leaving around the packs. Coming from the perspective of the end user, I would probably want to repack quite a bit more often to take advantage of the size and speed advantages, while large public repositories will probably want to repack at much longer periods. Thanks for seeing both perspectives. I like your updated patch.

Frank
- --
Frank Sorenson - KD7TZK
Systems Manager, Computer Science Department
Brigham Young University
frank@tuxrocks.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDE1r3aI0dwg4A47wRAldNAJ9J7wmyQMsMm5G0FgvOggc+QDtg/QCg0T+w y6A/46LYEr1zhFgxK6uKX0I= =z8uM -----END PGP SIGNATURE-----

Previous: Junio C Hamano
Message 10 of 10 in “git-repack-script: Add option to repack all objects”
  1. git-repack-script: Add option to repack all objectsFrank Sorenson, Aug 27, 2005
  2. Junio C HamanoAug 28, 2005
  3. Frank SorensonAug 29, 2005
  4. Junio C HamanoAug 29, 2005
  5. git-repack-script: Add option to repack all objects.Junio C Hamano, Aug 29, 2005
  6. A Large Angry SCMAug 29, 2005
  7. Junio C HamanoAug 29, 2005
  8. A Large Angry SCMAug 29, 2005
  9. Junio C HamanoAug 29, 2005
  10. Frank SorensonAug 29, 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.