rename backends more
This commit is contained in:
parent
e67887d98b
commit
5de102d5b9
4 changed files with 14 additions and 14 deletions
17
Backend/SHA1.hs
Normal file
17
Backend/SHA1.hs
Normal file
|
@ -0,0 +1,17 @@
|
|||
{- git-annex "SHA1" backend
|
||||
- -}
|
||||
|
||||
module Backend.SHA1 (backend) where
|
||||
|
||||
import qualified Backend.File
|
||||
import Data.Digest.Pure.SHA
|
||||
import BackendTypes
|
||||
|
||||
backend = Backend.File.backend {
|
||||
name = "SHA1",
|
||||
getKey = keyValue
|
||||
}
|
||||
|
||||
-- checksum the file to get its key
|
||||
keyValue :: FilePath -> Annex (Maybe Key)
|
||||
keyValue k = error "SHA1 keyValue unimplemented" -- TODO
|
Loading…
Add table
Add a link
Reference in a new issue