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

Re: [PATCH] revert & cherry-pick: run git gc --auto

From
SZEDER Gábor <szeder.dev@gmail.com>
Date
Oct 11, 2018, 11:24 UTC
Message-ID
<20181011112400.GA19800@szeder.dev>
In-Reply-To
<87efcwepqc.fsf@evledraar.gmail.com>
On Thu, Oct 11, 2018 at 12:34:35PM +0200, Ævar Arnfjörð Bjarmason wrote:
> I see we define NO_POSIX_GOODIES on Windows/MinGW, so those don't
> demonize "gc", but then I'm confused by this which seems to imply the
> opposite: https://github.com/Microsoft/vscode/issues/29901
I don't think it implies that.

The last comment starts with "Code calls git fetch periodically". I presume that it does so in the background (to prevent blocking the UI until 'git fetch' runs), therefore 'git gc --auto' starts already in the background. Furthermore, notice that 'git prune' on that screenshot has two 'git.exe' parents: I think its parent is 'git gc --auto' and its grandparent is 'git fetch'. Now, if that 'git gc --auto' were to go to the background as a result of our daemonize(), then the grandparent 'git fetch' would have very likely exited already.

Previous: Ævar Arnfjörð BjarmasonNext: Phillip Wood
Message 6 of 7 in “revert & cherry-pick: run git gc --auto”
  1. revert & cherry-pick: run git gc --autoÆvar Arnfjörð Bjarmason, Oct 10, 2018
  2. Phillip WoodOct 11, 2018
  3. Ævar Arnfjörð BjarmasonOct 11, 2018
  4. SZEDER GáborOct 11, 2018
  5. Ævar Arnfjörð BjarmasonOct 11, 2018
  6. SZEDER GáborOct 11, 2018
  7. Phillip WoodOct 11, 2018

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.