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

Suppress reporting implicit git gc calls, when they don’t do anything

From
ДПДилян Палаузов <dilyan.palauzov@aegee.org>
Date
Dec 21, 2018, 10:27 UTC
Message-ID
<63142a981325e68cb6e90ebd485627e41321ecaa.camel@aegee.org>
Hello,
With git 19.2.2 after `git pull` the output was
1. Autopacking the repository in background for optimal performance. 
See "git help gc" for manual housekeeping
2. error: Your local changes to the following files would be
overwritten by merge:
  …
Please commit your changes or stash them before you merge.
Aborting
This implies, that `git gc` runs in the background.

Then I called `git rebase --autostash` on which the output contained again:

“Autopacking the repository in background for optimal performance. See "git help gc" for manual housekeeping.”

The second message means, that `git gc` is again started in the background, before the first GC has finished. Clearly non-sense.

In practice, the second GC does not run, or exits very fast.
* Alter `git rebase --autostash` not to write, that git gc is called,
when that GC doesn’t do anything.
Regards
  Дилян
Message 1 of 1 in “Suppress reporting implicit git gc calls, when they don’t do anything”
  1. Дилян ПалаузовDec 21, 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.