git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Cutting history
@ 2010-07-10  3:25 Enrico Weigelt
  2010-07-10  4:08 ` Joshua Jensen
  0 siblings, 1 reply; 7+ messages in thread
From: Enrico Weigelt @ 2010-07-10  3:25 UTC (permalink / raw)
  To: git


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
----------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-07-10 20:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-10  3:25 Cutting history Enrico Weigelt
2010-07-10  4:08 ` Joshua Jensen
2010-07-10  6:43   ` Chris Frey
2010-07-10  8:47   ` Jakub Narebski
2010-07-10 10:40     ` Martin Pettersson
2010-07-10 11:58     ` Ævar Arnfjörð Bjarmason
2010-07-10 20:12       ` Ævar Arnfjörð Bjarmason

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).