Re: newbie questions about git design and features (some wrt hg)
From: Shawn O. Pearce <hidden>
Date: 2016-06-15 22:42:52
Jakub Narebski [off-list ref] wrote:
Simon 'corecode' Schubert wrote:quoted
Jakub Narebski wrote:quoted
By the way, RCS / CVS rewrote relevant data (to have diff from the top structure) on each commit. I wonder if git could generate pack on the fly fastimport like...What do you mean with that? generate the pack on which occasion? CVS import? I do this already.On commit.
I've thought about doing this. Except there are three independent processes occuring during commit that generate objects: update-index write-tree commit-tree and the update-index portion is also git-add, which we have now started to encourage users to do ahead of time as often as needed, prior to running git-commit. Its also the one that generates the largest set of new objects for most projects. One problem comes that we have a rule: "don't delta an object which is already in a pack, unless -f is given". This is one of the reasons `git repack -a -d -l` is so dang fast. Its assuming all new stuff is loose, and therefore should be delta'd, but the old stuff which we have already delta'd is kept as-is. Basically I've thought about doing this (after my work in gfi) and decided its not worth the level of effort involved at this time. So I'm not going to do it. Someone else can try. ;-) -- Shawn.