diff options
author | Joey Hess <joey@kitenet.net> | 2010-10-15 19:33:10 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-10-15 19:33:10 -0400 |
commit | 5de102d5b90fb621bdb1bd81cf5f562a9a2549e4 (patch) | |
tree | c5b6c8eb9aebbc7c525fcea448d9f7fbac826d83 /Backend/SHA1.hs | |
parent | e67887d98b61aeabffc9d1a231421bb00848dd13 (diff) |
rename backends more
Diffstat (limited to 'Backend/SHA1.hs')
-rw-r--r-- | Backend/SHA1.hs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Backend/SHA1.hs b/Backend/SHA1.hs new file mode 100644 index 000000000..8c7c99bbd --- /dev/null +++ b/Backend/SHA1.hs @@ -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 |