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,
|
catFileDetails,
|
||||||
catObject,
|
catObject,
|
||||||
catTree,
|
catTree,
|
||||||
|
catCommit,
|
||||||
catObjectDetails,
|
catObjectDetails,
|
||||||
catFileHandle,
|
catFileHandle,
|
||||||
catFileStop,
|
catFileStop,
|
||||||
|
@ -52,6 +53,11 @@ catTree ref = do
|
||||||
h <- catFileHandle
|
h <- catFileHandle
|
||||||
liftIO $ Git.CatFile.catTree h ref
|
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 :: Git.Ref -> Annex (Maybe (L.ByteString, Sha, ObjectType))
|
||||||
catObjectDetails ref = do
|
catObjectDetails ref = do
|
||||||
h <- catFileHandle
|
h <- catFileHandle
|
||||||
|
|
Loading…
Reference in a new issue