Re: Core and Not-So Core
- From
- Juliusz Chroboczek <juliusz.chroboczek@pps.jussieu.fr>
- Date
- May 18, 2005, 18:35 UTC
- Message-ID
- <7i8y2cz8kb.fsf@lanthane.pps.jussieu.fr>
- In-Reply-To
- <2cfc40320505100800426d38ca@mail.gmail.com>
Show 6 quoted lines
> To give a concrete example: the cache currently contains most of the > posix stat structure primarily to allow quick change detection. In the > Java world, most of the posix stat structure is not directly > accessible via the pure-Java file system abstractions. However, for > most purposes detecting changes to files modification time and file > size would be enough.
I've got exactly this problem in Darcs-git; and I ignore all of the cached data except the file size, mtime and sha1. I don't currently ever write to the cache.
> I think it would be worthwhile if care was taken to draw a distinction > between the repository and the cache aspects of the git core, perhaps > even going to the extreme of moving all knowledge of the cache into > cogito itself.
There's nothing that prevents you from ignoring the Git cache and using your own cache instead.
Juliusz