blob: bfc789e40eb30861cf3d7dad9d73fbadfbccef33 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
{- git-annex "checksum" backend
- -}
module Backend.Checksum (backend) where
import qualified Backend.File
import Data.Digest.Pure.SHA
import BackendTypes
-- based on BackendFile just with a different key type
backend = Backend.File.backend {
name = "checksum",
getKey = keyValue
}
-- checksum the file to get its key
keyValue :: FilePath -> Annex (Maybe Key)
keyValue k = error "checksum keyValue unimplemented" -- TODO
|