gitlib-libgit2-1.2.1: Libgit2 backend for gitlib

Safe HaskellNone

Git.Libgit2

Description

Interface for opening and creating repositories. Repository objects are immutable, and serve only to refer to the given repository. Any data associated with the repository — such as the list of branches — is queried as needed.

Documentation

type family Oid m1 :: *

data OidPtr Source

Constructors

OidPtr 

Fields

getOid :: ForeignPtr C'git_oid
 

mkOid :: ForeignPtr C'git_oid -> OidPtrSource

checkResult :: (Eq a, Num a, Failure GitException m) => a -> Text -> m ()Source

lgForEachObject :: Ptr C'git_odb -> (Ptr C'git_oid -> Ptr () -> IO CInt) -> Ptr () -> IO CIntSource

lgLoadPackFileInMemory :: FilePath -> Ptr (Ptr C'git_odb_backend) -> Ptr (Ptr C'git_odb) -> ResourceT IO (Ptr C'git_odb)Source

lgWithPackFile :: FilePath -> (Ptr C'git_odb -> ResourceT IO a) -> IO aSource

withLibGitDo :: IO a -> IO a