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

Re: [ANNOUNCE] GIT 1.5.4.4

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 10, 2008, 06:34 UTC
Message-ID
<7vmyp7kryp.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<47D459D5.2020101@garzik.org>
Jeff Garzik <jeff@garzik.org> writes:
> Yes, I regularly run both 'git gc' and 'git prune'.
>
> But since (ref original email) I was doing some rebasing, there are
> inevitably changesets left dangling after such an operation.

Yeah, I'd say it is stupid if "am" ran "gc --auto" for every patch. I recall that we had the same issue with git-svn and we made it run once every 1k round, and we probably should do the same for "am" and "rebase", running once at the very end.

I notice however that git-am does exactly that. It runs "gc --auto" only at the end, and does not run it when it stops upon unapplicable patch.

Perhaps we would want to raise the default "gc --auto" limit? Currently when it estimates that you have roughly 6700 objects unpacked it runs "repack --prune-packed", and if there still are that many unpacked objects after that, it suggests you to run "git prune" to remove them. If you are rebasing, the commits in the old history that are rewritten will _not_ immediately become dangling because they will still be reachable from your reflog. If you are getting the message, these objects were already dangling (ancient commits that are not even reachable from your reflog entries that are by default kept for 90 days) even before you started your rebase or am run.

After you finished your day's work on a typical day, what does the output from "git count-objects -v" and "git fsck-objects" look like, I wonder?

Previous: Jeff GarzikNext: Jeff Garzik
Message 6 of 7 in “[ANNOUNCE] GIT 1.5.4.3”
  1. Junio C HamanoFeb 23, 2008
  2. [ANNOUNCE] GIT 1.5.4.4Junio C Hamano, Mar 9, 2008
  3. Jeff GarzikMar 9, 2008
  4. Junio C HamanoMar 9, 2008
  5. Jeff GarzikMar 9, 2008
  6. Junio C HamanoMar 10, 2008
  7. Jeff GarzikMar 11, 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.