hit-0.2.1: Git operations

Portabilityunix
Stabilityexperimental
MaintainerVincent Hanquez <vincent@snarc.org>

Data.Git.Index

Contents

Description

 

Synopsis

Documentation

data IndexHeader Source

represent an index header with the version and the fanout table

Constructors

IndexHeader !Word32 !(Vector Word32) 

handles and enumeration

indexOpen :: FilePath -> Ref -> IO FileReaderSource

enumerate every indexes file in the pack directory

open an index

indexClose :: FileReader -> IO ()Source

close an index

withIndex :: FilePath -> Ref -> (FileReader -> IO a) -> IO aSource

read from index

indexHeaderGetNbWithPrefix :: IndexHeader -> Int -> Word32Source

get the number of reference in this index with a specific prefix

indexGetReferenceLocation :: IndexHeader -> FileReader -> Ref -> IO (Maybe Word64)Source

return the reference offset in the packfile if found

indexGetReferencesWithPrefix :: IndexHeader -> FileReader -> String -> IO [Ref]Source

get all references that start by prefix.

indexReadHeader :: FileReader -> IO IndexHeaderSource

returns absolute offset in the index file of the sha1s, the crcs and the packfiles offset.

parse index header

read index header from an index filereader

indexGetHeader :: FilePath -> Ref -> IO IndexHeaderSource

get index header from an index reference