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

Re: [PATCH] Documentation/git-gc.txt: change --aggressive description

From
PBPieter de Bie <pieter@frim.nl>
Date
May 24, 2008, 19:03 UTC
Message-ID
<25B3A6F3-5650-438D-807F-983C811084CC@frim.nl>
In-Reply-To
<FCA89971-FDBB-4E44-82CE-C0AA854A4667@ai.rug.nl>
On May 14, 2008, at 8:48 AM, Pieter de Bie wrote:
Show 20 quoted lines
> On 13 mei 2008, at 13:52, Johannes Schindelin wrote:
>>> The documentation for the --aggressive flag was misleading,  
>>> hinting that
>>> running git gc with --aggressive is a good thing. However, -- 
>>> aggressive
>>> only really makes sense if you have a bad pack file, such as from
>>> git-fast-import.
>>
>> I disagree.  It makes sense to "git gc --aggressive" also after  
>> cloning
>> from somebody who did not do so.
>
> The problem with this is that your pack might increase in size,  
> which you can't know in advance. Running "git gc --aggressive" on  
> the git repo for example increases its size from 20MB to 30MB.
>
> The current wording at least makes it sound as if --aggressive will  
> always result in a smaller pack, which is simply not true.  
> Increasing the window and depth might help, but 250 or even 100 can  
> be too much on any decently size repository.

Any other comments on this patch? I still think it is an improvement over what is currently in the the man-page.

- Pieter
Previous: Matthieu Moy
Message 10 of 10 in “Documentation/git-gc.txt: change --aggressive description”
  1. Documentation/git-gc.txt: change --aggressive descriptionPieter de Bie, May 13, 2008
  2. Teemu LikonenMay 13, 2008
  3. Teemu LikonenMay 13, 2008
  4. Johannes SchindelinMay 13, 2008
  5. Teemu LikonenMay 13, 2008
  6. Pieter de BieMay 13, 2008
  7. Johannes SchindelinMay 13, 2008
  8. Pieter de BieMay 14, 2008
  9. Matthieu MoyMay 14, 2008
  10. Pieter de BieMay 24, 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.