add catCommit

This commit is contained in:
Joey Hess 2016-02-25 15:34:46 -04:00
parent 3b74dc8be8
commit 04d4830ac3
Failed to extract signature

View file

@ -10,6 +10,7 @@ module Annex.CatFile (
catFileDetails,
catObject,
catTree,
catCommit,
catObjectDetails,
catFileHandle,
catFileStop,
@ -52,6 +53,11 @@ catTree ref = do
h <- catFileHandle
liftIO $ Git.CatFile.catTree h ref
catCommit :: Git.Ref -> Annex (Maybe Commit)
catCommit ref = do
h <- catFileHandle
liftIO $ Git.CatFile.catCommit h ref
catObjectDetails :: Git.Ref -> Annex (Maybe (L.ByteString, Sha, ObjectType))
catObjectDetails ref = do
h <- catFileHandle