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

Cutting history

From
EWEnrico Weigelt <weigelt@metux.de>
Date
Jul 10, 2010, 03:25 UTC
Message-ID
<20100710032553.GB554@nibiru.local>
Hi folks,

I'm using git for automatic backups (eg. database dumps). This works quite well, but as time goes, the history (and so the repo) gets larger and larger. It would be really nice to allow cutting off old stuff (eg. after N commits in the past).

Maybe that could be done by introducing "stopper" tags: commits that have an stopper-tag may have missing parents, and git-gc can be told to ignore those parents and throw away everything behind the stopper (if not referenced otherwise).

A probably cleaner, but more invasive way could be making refs to vectors, which may contain stop points (multiple ones in case of merges) additionally to the start point. Remote transmits only contain the commits within this range, and GC also just scans the range (instead of following all parents).

What do you think about this ?
cu
-- 
----------------------------------------------------------------------
 Enrico Weigelt, metux IT service -- http://www.metux.de/

 phone:  +49 36207 519931  email: weigelt@metux.de
 mobile: +49 151 27565287  icq:   210169427         skype: nekrad666
----------------------------------------------------------------------
 Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme
----------------------------------------------------------------------
Next: Joshua Jensen
Message 1 of 7 in “Cutting history”
  1. Enrico WeigeltJul 10, 2010
  2. Joshua JensenJul 10, 2010
  3. Chris FreyJul 10, 2010
  4. Jakub NarebskiJul 10, 2010
  5. Martin PetterssonJul 10, 2010
  6. Ævar Arnfjörð BjarmasonJul 10, 2010
  7. Ævar Arnfjörð BjarmasonJul 10, 2010

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.