summaryrefslogtreecommitdiff
path: root/Command/Smudge.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-12-09 17:00:37 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-12-09 17:00:37 -0400
commit76ccac53916d308aa4806d38bb8cfb6a9d1f9081 (patch)
tree10f7618585df73c335c459f9562b04f37a7eb03f /Command/Smudge.hs
parentb5c8ba7db3ea2eb4f1cd28e49cadb5fd348ca738 (diff)
add inode cache to the db
Renamed the db to keys, since it is various info about a Keys. Dropping a key will update its pointer files, as long as their content can be verified to be unmodified. This falls back to checksum verification, but I want it to use an InodeCache of the key, for speed. But, I have not made anything populate that cache yet.
Diffstat (limited to 'Command/Smudge.hs')
-rw-r--r--Command/Smudge.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Command/Smudge.hs b/Command/Smudge.hs
index 9ce95d4ef..b532ac3d1 100644
--- a/Command/Smudge.hs
+++ b/Command/Smudge.hs
@@ -16,7 +16,7 @@ import Annex.FileMatcher
import Types.KeySource
import Backend
import Logs.Location
-import qualified Database.AssociatedFiles as AssociatedFiles
+import qualified Database.Keys
import qualified Data.ByteString.Lazy as B
@@ -103,5 +103,5 @@ emitPointer = putStrLn . formatPointer
updateAssociatedFiles :: Key -> FilePath -> Annex ()
updateAssociatedFiles k f = do
- AssociatedFiles.addDb k f
- AssociatedFiles.flushDb
+ Database.Keys.addAssociatedFile k f
+ Database.Keys.flushDb