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

'git gc' always run, on old kernel repo?

From
JGJeff Garzik <jeff@garzik.org>
Date
Feb 28, 2008, 19:57 UTC
Message-ID
<47C71233.4050705@garzik.org>
In order to apply a kernel patch diff'd against an older kernel, I ran
	git checkout -b tmp v2.6.23
	git-am --signoff --utf8 /g/tmp/mbox

The patch applied successfully, but each time I run this, it starts an automated 'git gc' run... even if there is nothing useful to gc:

Show 8 quoted lines
> [jgarzik@pretzel netdev-2.6]$ git-am --signoff --utf8 /g/tmp/mbox 
> Applying Add support for HT1100 SATA controller - sent from evolution
> Auto packing your repository for optimum performance. You may also
> run "git gc" manually. See "git help gc" for more information.
> Counting objects: 1, done.
> Writing objects: 100% (1/1), done.
> Total 1 (delta 0), reused 0 (delta 0)
> warning: There are too many unreachable loose objects; run 'git prune' to remove them.

IMO there is a broken hueristic in there somewhere... I regularly run 'git gc' on my repos...

	Jeff
Next: Jeff Garzik
Message 1 of 6 in “'git gc' always run, on old kernel repo?”
  1. Jeff GarzikFeb 28, 2008
  2. Jeff GarzikFeb 28, 2008
  3. Asheesh LaroiaFeb 28, 2008
  4. Asheesh LaroiaFeb 28, 2008
  5. Nicolas PitreFeb 28, 2008
  6. Jeff GarzikFeb 28, 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.