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

Re: [RFC PATCH] repack: make repack -a equivalent to repack -A and drop previous -a behavior

From
Brandon Casey <casey@nrlssc.navy.mil>
Date
Nov 14, 2008, 01:36 UTC
Message-ID
<Dei99j9xFoGAh0A3LCO0zx3LqCb4lViSZpGvv_KGn38@cipher.nrlssc.navy.mil>
In-Reply-To
<20081114012502.GC5285@atjola.homenet>
Björn Steinbrink wrote:
Show 15 quoted lines
> On 2008.11.13 18:53:29 -0600, Brandon Casey wrote:
>> Björn Steinbrink wrote:
>>> I didn't check all the (proposed) commits for that branch, so just let
>>> me know if I'm missing anything, but doesn't this change mean that you
>>> just lose what "-ad" did?
>> yes.
>>
>>> We have:
>>> 	-a	Create a new pack, containing all reachable objects
>>> 	-A	Same as -a
>>> 	-ad	Same as -a, and drop all old packs and loose objects
>> by loose objects, I assume you mean packed unreachable objects.
> 
> No, actually I just totally ignored the fact that -a of course already
> deletes the loose objects.

Actually, I had forgotten that repack deletes any loose objects at all. It does call prune-packed, but only when -d is used.

Show 5 quoted lines
> IMHO, "git gc" already provides enough safety. I tend to see "gc" as the
> regular "just use it" tool, while repack gives me more control over how
> I want things to be done, without forcing me to use the real plumbing or
> to fumble around with the configuration for gc. And when I want control,
> I'm generally prepared to shoot myself in the foot.
I think you're right. Thanks for providing an example of a real use case.
-brandon
Previous: Björn SteinbrinkNext: Björn Steinbrink
Message 5 of 7 in “repack: make repack -a equivalent to repack -A and drop previous -a behavior”
  1. repack: make repack -a equivalent to repack -A and drop previous -a behaviorBrandon Casey, Nov 13, 2008
  2. Björn SteinbrinkNov 14, 2008
  3. Brandon CaseyNov 14, 2008
  4. Björn SteinbrinkNov 14, 2008
  5. Brandon CaseyNov 14, 2008
  6. Björn SteinbrinkNov 14, 2008
  7. Theodore TsoNov 14, 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.