blob: 8c7c99bbd7eef91320e7128ea0eb5b7d02c8b49c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
|