aboutsummaryrefslogtreecommitdiff
path: root/Annex/CatFile.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Annex/CatFile.hs')
-rw-r--r--Annex/CatFile.hs6
1 files changed, 6 insertions, 0 deletions
diff --git a/Annex/CatFile.hs b/Annex/CatFile.hs
index 88c498d31..b22a090e8 100644
--- a/Annex/CatFile.hs
+++ b/Annex/CatFile.hs
@@ -7,6 +7,7 @@
module Annex.CatFile (
catFile,
+ catFileIndex,
catObject,
catObjectDetails,
catFileHandle
@@ -25,6 +26,11 @@ catFile branch file = do
h <- catFileHandle
liftIO $ Git.CatFile.catFile h branch file
+catFileIndex :: FilePath -> Annex L.ByteString
+catFileIndex file = do
+ h <- catFileHandle
+ liftIO $ Git.CatFile.catFileIndex h file
+
catObject :: Git.Ref -> Annex L.ByteString
catObject ref = do
h <- catFileHandle