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

Re: [PATCH] git-clone.txt: Adjust note to --shared for new pruning behavior of git-gc

From
Brandon Casey <casey@nrlssc.navy.mil>
Date
Apr 4, 2008, 14:25 UTC
Message-ID
<47F63A71.2010100@nrlssc.navy.mil>
In-Reply-To
<m3prt6t8sn.fsf@localhost.localdomain>
Jakub Narebski wrote:
Show 14 quoted lines
> Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> 
>> On Thu, 3 Apr 2008, Brandon Casey wrote:
>>> But what I was really trying to point out in the documentation changes 
>>> was that now _other_ commands such as git-commit are also unsafe since 
>>> they call 'git-gc --auto' and could cause loose unreferenced objects to 
>>> be deleted. So it is not enough to just avoid calling git-gc when 
>>> dealing with a --shared repository.
>> Right.  Hmm.  I missed that completely when I thought about prune 
>> --expire.
> 
> I think that if you are using repository from which other repos borrow
> objects via alternates, it is a good idea to turn off automatic
> repacking with "git gc --auto" by setting gc.auto to 0

Either that or disable only the automatic pruning by setting gc.pruneexpire to never.

> (or, hopefully, "never" or "false").

I think those only work for dates and booleans respectively. gc.auto is parsed as an int.

-brandon
Previous: Jakub Narebski
Message 6 of 6 in “git-clone.txt: Adjust note to --shared for new pruning behavior of git-gc”
  1. git-clone.txt: Adjust note to --shared for new pruning behavior of git-gcBrandon Casey, Apr 3, 2008
  2. Johannes SchindelinApr 3, 2008
  3. Brandon CaseyApr 3, 2008
  4. Johannes SchindelinApr 3, 2008
  5. Jakub NarebskiApr 4, 2008
  6. Brandon CaseyApr 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.