Thread (1 message) 1 message, 1 author, 2016-06-15

Re: Core and Not-So Core

From: Juliusz Chroboczek <hidden>
Date: 2016-06-15 22:41:57

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help