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

'git gc' & number of unpacked objects ?

From
YLYakov Lerner <iler.ml@gmail.com>
Date
Jul 17, 2007, 16:14 UTC
Message-ID
<f36b08ee0707170914g7ece7124qf5d8d6a1307cc07e@mail.gmail.com>

By the analogy with the maxtime and maxmount in the ext3 when it reminds you to fsck, when number of mounts since last fsck, or time since last fsck is above some limits. I think this makes practical sense. I think the similar thing makes sense wrt to 'git gc'.

Is it possible that git repo had a parameter N, and when the counter of
unpacked object hit this number,  then git operations start to print
semi-annoying warnings
      "Time to optimize your repo using 'git gc' command ... "
?

I am naive user. I forget things. Really. I rely on git to remember things. Is this a reasonable parameter ?

Thanks Yakov

Next: Sam Vilain
Message 1 of 2 in “'git gc' & number of unpacked objects ?”
  1. Yakov LernerJul 17, 2007
  2. Sam VilainJul 17, 2007

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.