diff options
author | Joey Hess <joeyh@joeyh.name> | 2015-12-09 17:47:05 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2015-12-09 17:54:54 -0400 |
commit | d2d501503d9aa19787466129394141c794bb84e6 (patch) | |
tree | 3a0e3982e420ec42e2d90672628c4d63c7f78eff /Utility | |
parent | 76ccac53916d308aa4806d38bb8cfb6a9d1f9081 (diff) |
use InodeCache when dropping a key to see if a pointer file can be safely reset
The Keys database can hold multiple inode caches for a given key. One for
the annex object, and one for each pointer file, which may not be hard
linked to it.
Inode caches for a key are recorded when its content is added to the annex,
but only if it has known pointer files. This is to avoid the overhead of
maintaining the database when not needed.
When the smudge filter outputs a file's content, the inode cache is not
updated, because git's smudge interface doesn't let us write the file. So,
dropping will fall back to doing an expensive verification then. Ideally,
git's interface would be improved, and then the inode cache could be
updated then too.
Diffstat (limited to 'Utility')
-rw-r--r-- | Utility/InodeCache.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Utility/InodeCache.hs b/Utility/InodeCache.hs index b5fe9034e..8bd7ae0cd 100644 --- a/Utility/InodeCache.hs +++ b/Utility/InodeCache.hs @@ -1,7 +1,7 @@ {- Caching a file's inode, size, and modification time - to see when it's changed. - - - Copyright 2013, 2014 Joey Hess <id@joeyh.name> + - Copyright 2013-2014 Joey Hess <id@joeyh.name> - - License: BSD-2-clause -} |