add catCommit
This commit is contained in:
parent
3b74dc8be8
commit
04d4830ac3
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue