Re: git and time
- From
Linus Torvalds <torvalds@osdl.org>
- Date
- Sep 27, 2006, 18:09 UTC
- Message-ID
- <Pine.LNX.4.64.0609271105430.3952@g5.osdl.org>
- In-Reply-To
- <20060927200054.7a49b619.froese@gmx.de>
On Wed, 27 Sep 2006, Edgar Toernig wrote:
> > Well, I would simply look at the filesystem's mtime of the commit object > resp. the pack containing the commit. IMHO good enough most of the time.
Nope. The moment you repack, you're toast. And if you don't repack, please don't use large repositories.
Here's a real-world example: in the week since 2.6.18 was released, the kernel has gotten over twenty _thousand_ new objects. If you don't repack, you'll have lost about 40MB of diskspace. It adds up.
So yes, mtime works for a bit. And then it stops working ;)
Linus