gitlib-libgit2-1.0.2: 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

data family Oid m1

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

oidToSha :: Ptr C'git_oid -> IO TextSource

withLibGitDo :: IO a -> IO a