add hashPointerFile'

This commit is contained in:
Joey Hess 2016-02-25 16:10:54 -04:00
parent 04d4830ac3
commit 4712882776
Failed to extract signature

View file

@ -123,6 +123,9 @@ hashPointerFile :: Key -> Annex Sha
hashPointerFile key = inRepo $ Git.HashObject.hashObject BlobObject $
formatPointer key
hashPointerFile' :: Git.HashObject.HashObjectHandle -> Key -> Annex Sha
hashPointerFile' h = liftIO . Git.HashObject.hashBlob h . formatPointer
{- Stages a pointer file, using a Sha of its content -}
stagePointerFile :: FilePath -> Sha -> Annex ()
stagePointerFile file sha =