gitlib-libgit2-3.1.1: Libgit2 backend for gitlib

Safe HaskellNone
LanguageHaskell98

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 family Oid r :: * #

Instances

type Oid LgRepo # 

data OidPtr #

Constructors

OidPtr 

type Tree = Tree LgRepo #

checkResult :: (Eq a, Num a, MonadExcept m) => a -> Text -> m () #

lgDebug :: MonadIO m => String -> m () #

lgWarn :: MonadIO m => String -> m () #

Orphan instances

(Applicative m, MonadExcept m, MonadBaseControl IO m, MonadIO m) => MonadGit LgRepo (ReaderT * LgRepo m) # 

Associated Types

type Oid LgRepo :: * #

data Tree LgRepo :: * #

data Options LgRepo :: * #

Methods

facts :: ReaderT * LgRepo m RepositoryFacts #

parseOid :: Text -> ReaderT * LgRepo m (Oid LgRepo) #

getRepository :: ReaderT * LgRepo m LgRepo #

closeRepository :: ReaderT * LgRepo m () #

deleteRepository :: ReaderT * LgRepo m () #

createReference :: RefName -> RefTarget LgRepo -> ReaderT * LgRepo m () #

lookupReference :: RefName -> ReaderT * LgRepo m (Maybe (RefTarget LgRepo)) #

updateReference :: RefName -> RefTarget LgRepo -> ReaderT * LgRepo m () #

deleteReference :: RefName -> ReaderT * LgRepo m () #

sourceReferences :: Producer (ReaderT * LgRepo m) RefName #

lookupObject :: Oid LgRepo -> ReaderT * LgRepo m (Object LgRepo (ReaderT * LgRepo m)) #

existsObject :: Oid LgRepo -> ReaderT * LgRepo m Bool #

sourceObjects :: Maybe (CommitOid LgRepo) -> CommitOid LgRepo -> Bool -> Producer (ReaderT * LgRepo m) (ObjectOid LgRepo) #

lookupCommit :: CommitOid LgRepo -> ReaderT * LgRepo m (Commit LgRepo) #

lookupTree :: TreeOid LgRepo -> ReaderT * LgRepo m (Tree LgRepo) #

lookupBlob :: BlobOid LgRepo -> ReaderT * LgRepo m (Blob LgRepo (ReaderT * LgRepo m)) #

lookupTag :: TagOid LgRepo -> ReaderT * LgRepo m (Tag LgRepo) #

readIndex :: TreeT LgRepo (ReaderT * LgRepo m) () #

writeIndex :: TreeT LgRepo (ReaderT * LgRepo m) () #

newTreeBuilder :: Maybe (Tree LgRepo) -> ReaderT * LgRepo m (TreeBuilder LgRepo (ReaderT * LgRepo m)) #

treeOid :: Tree LgRepo -> ReaderT * LgRepo m (TreeOid LgRepo) #

treeEntry :: Tree LgRepo -> TreeFilePath -> ReaderT * LgRepo m (Maybe (TreeEntry LgRepo)) #

sourceTreeEntries :: Tree LgRepo -> Producer (ReaderT * LgRepo m) (TreeFilePath, TreeEntry LgRepo) #

diffContentsWithTree :: Source (ReaderT * LgRepo m) (Either TreeFilePath ByteString) -> Tree LgRepo -> Producer (ReaderT * LgRepo m) ByteString #

hashContents :: BlobContents (ReaderT * LgRepo m) -> ReaderT * LgRepo m (BlobOid LgRepo) #

createBlob :: BlobContents (ReaderT * LgRepo m) -> ReaderT * LgRepo m (BlobOid LgRepo) #

createCommit :: [CommitOid LgRepo] -> TreeOid LgRepo -> Signature -> Signature -> CommitMessage -> Maybe RefName -> ReaderT * LgRepo m (Commit LgRepo) #

createTag :: CommitOid LgRepo -> Signature -> CommitMessage -> Text -> ReaderT * LgRepo m (Tag LgRepo) #