Re: Git commit generation numbers
- From
Ted Ts'o <tytso@mit.edu>
- Date
- Jul 14, 2011, 19:46 UTC
- Message-ID
- <20110714194638.GE8453@thunk.org>
- In-Reply-To
- <CA+55aFzvib7QF-J3fBj2brcQifXGqoeK1t7vfx6pcJmJAEO0dw@mail.gmail.com>
On Thu, Jul 14, 2011 at 11:55:39AM -0700, Linus Torvalds wrote:
Show 11 quoted lines
> On Thu, Jul 14, 2011 at 11:47 AM, Linus Torvalds > <torvalds@linux-foundation.org> wrote: > > > > Also, I suspect that the cache could easily be done as a *small* and > > *incomplete* cache, ie you don't need to cache all commits, it would > > be sufficient to cache a few hundred spread-out commits, and just know > > that "from any commit, the cached commit will be quickly reachable". > > Put another way: we could do the cache not as a real dynamic entity, > but as something that gets generated at "git clone" time or when > re-packing.
Would it be considered evil if we put the generation number in the pack, but not consider it part of the formal object (i.e., it would be just a cache, but one that wouldn't change once the pack was created)?
- Ted