git-0.2.1: Git operations in haskell

LicenseBSD-style
MaintainerVincent Hanquez <vincent@snarc.org>
Stabilityexperimental
Portabilityunix
Safe HaskellNone
LanguageHaskell98

Data.Git.Storage.Pack

Contents

Description

 

Synopsis

Documentation

Enumerators of packs

packEnumerate :: HashAlgorithm hash => LocalPath -> IO [Ref hash] Source #

Enumerate the pack refs available in this repository.

Helpers to process packs

packOpen :: LocalPath -> Ref hash -> IO FileReader Source #

open a pack

packClose :: FileReader -> IO () Source #

close a pack

Command for the content of a pack

packReadHeader :: LocalPath -> Ref hash -> IO Word32 Source #

return the number of entries in this pack

packReadMapAtOffset :: HashAlgorithm hash => FileReader -> Word64 -> (ByteString -> ByteString) -> IO (Maybe (Object hash)) Source #

read an object at a specific position using a map function on the objectData

packReadAtOffset :: HashAlgorithm hash => FileReader -> Word64 -> IO (Maybe (Object hash)) Source #

read an object at a specific position

packReadRawAtOffset :: HashAlgorithm hash => FileReader -> Word64 -> IO (PackedObjectRaw hash) Source #

read a raw representation at a specific position

packEnumerateObjects :: HashAlgorithm hash => LocalPath -> Ref hash -> Int -> (PackedObjectRaw hash -> IO a) -> IO () Source #

enumerate all objects in this pack and callback to f for reach raw objects

turn a packed object into a