diff options
author | Joey Hess <joey@kitenet.net> | 2010-10-15 16:42:36 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-10-15 16:42:50 -0400 |
commit | 395625d0a7c00457f63925beb31078f3eb3d9f79 (patch) | |
tree | 29c4dea2b84e301aa8f4cf515b53a5bd0e634b3f /Backend/File.hs | |
parent | 0e8cb63aabaa4a80769792fb07b0db2594efd6b0 (diff) |
rename file -> WORM
Diffstat (limited to 'Backend/File.hs')
-rw-r--r-- | Backend/File.hs | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/Backend/File.hs b/Backend/File.hs index 6267b478a..eba4b88f8 100644 --- a/Backend/File.hs +++ b/Backend/File.hs @@ -1,5 +1,12 @@ -{- git-annex "file" backend - - -} +{- git-annex pseudo-backend + - + - 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. + - + - This is an abstract backend; getKey has to be implemented to complete + - it. + -} module Backend.File (backend) where @@ -19,22 +26,13 @@ import qualified Annex import UUID backend = Backend { - name = "file", - getKey = keyValue, storeFileKey = dummyStore, retrieveKeyFile = copyKeyFile, removeKey = dummyRemove, hasKey = checkKeyFile } --- direct mapping from filename to key -keyValue :: FilePath -> Annex (Maybe Key) -keyValue file = return $ Just $ Key ((name backend), 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 key is - - a no-op. -} +{- Storing a key is a no-op. -} dummyStore :: FilePath -> Key -> Annex (Bool) dummyStore file key = return True |