summaryrefslogtreecommitdiff
path: root/BackendFile.hs
diff options
context:
space:
mode:
Diffstat (limited to 'BackendFile.hs')
-rw-r--r--BackendFile.hs8
1 files changed, 5 insertions, 3 deletions
diff --git a/BackendFile.hs b/BackendFile.hs
index 6caf30f65..92f708696 100644
--- a/BackendFile.hs
+++ b/BackendFile.hs
@@ -17,11 +17,13 @@ backend = Backend {
keyValue :: GitRepo -> FilePath -> IO (Maybe Key)
keyValue repo file = return $ Just file
--- This backend does not really do any independant data storage,
--- it relies on the file contents in .git/annex/ in this repo,
--- and other accessible repos. So storing a file is a no-op.
+{- This backend does not really do any independant data storage,
+ - it relies on the file contents in .git/annex/ in this repo,
+ - and other accessible repos. So storing a file is a no-op. -}
dummyStore :: GitRepo -> FilePath -> Key -> IO (Bool)
dummyStore repo file key = return True
+{- Try to find a copy of the file in one of the other repos,
+ - and copy it over to this one. -}
copyFromOtherRepo :: IO Key -> FilePath -> IO (Bool)
copyFromOtherRepo key file = error "copyFromOtherRepo unimplemented" -- TODO