17 lines
359 B
Haskell
17 lines
359 B
Haskell
|
{- git-annex "WORM" backend -- Write Once, Read Many
|
||
|
- -}
|
||
|
|
||
|
module Backend.Worm (backend) where
|
||
|
|
||
|
import qualified Backend.File
|
||
|
import BackendTypes
|
||
|
|
||
|
backend = Backend.File.backend {
|
||
|
name = "WORM",
|
||
|
getKey = keyValue
|
||
|
}
|
||
|
|
||
|
-- direct mapping from filename to key
|
||
|
keyValue :: FilePath -> Annex (Maybe Key)
|
||
|
keyValue file = return $ Just $ Key ((name backend), file)
|