Safe Haskell | None |
---|---|
Language | Haskell98 |
Git.Libgit2
Contents
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 MonadLg m = (Applicative m, MonadExcept m, MonadIO m, MonadBaseControl IO m) #
Constructors
LgRepo | |
Fields |
mkOid :: ForeignPtr C'git_oid -> OidPtr #
lgRepoPath :: LgRepo -> FilePath #
addTracingBackend :: LgRepo -> IO () #
checkResult :: (Eq a, Num a, MonadExcept m) => a -> Text -> m () #
lgBuildPackIndex :: (MonadIO m, MonadBaseControl IO m) => FilePath -> ByteString -> m (Text, FilePath, FilePath) #
lgBuildPackFile :: MonadLg m => FilePath -> [Either CommitOid TreeOid] -> ReaderT LgRepo m FilePath #
lgReadFromPack :: (MonadBaseControl IO m, MonadIO m, MonadExcept m) => Ptr C'git_odb -> SHA -> Bool -> m (Maybe (C'git_otype, CSize, ByteString)) #
lgOpenPackFile :: (MonadBaseControl IO m, MonadIO m, MonadExcept m) => FilePath -> m (Ptr C'git_odb) #
lgClosePackFile :: (MonadBaseControl IO m, MonadIO m, MonadExcept m) => Ptr C'git_odb -> m () #
lgWithPackFile :: (MonadBaseControl IO m, MonadIO m, MonadExcept m) => FilePath -> (Ptr C'git_odb -> m a) -> m a #
lgDiffContentsWithTree :: MonadLg m => Source (ReaderT LgRepo m) (Either TreeFilePath (Either SHA ByteString)) -> Tree -> Producer (ReaderT LgRepo m) ByteString #
openLgRepository :: MonadIO m => RepositoryOptions -> m LgRepo #
runLgRepository :: LgRepo -> ReaderT LgRepo m a -> m a #
Orphan instances
(Applicative m, MonadExcept m, MonadBaseControl IO m, MonadIO m) => MonadGit LgRepo (ReaderT * LgRepo m) # | |