Safe Haskell | None |
---|
Data.Git.Repository
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 ObjPtr a = Maybe (ForeignPtr a)Source
Methods
objectRepo :: a -> RepositorySource
objectPtr :: a -> ObjPtr C'git_objectSource
objectRef :: a -> IO (ObjRef a)Source
objectRefId :: ObjRef a -> IO OidSource
maybeObjectId :: a -> Maybe OidSource
lookupFunction :: Repository -> Oid -> IO (Maybe a)Source
loadObject :: Updatable b => ObjRef a -> b -> IO (Maybe a)Source
loadObject' :: Updatable b => ObjRef a -> b -> IO aSource
data Repository Source
Constructors
Repository | |
Fields
|
Instances
createRepository :: FilePath -> Bool -> IO RepositorySource
openOrCreateRepository :: FilePath -> Bool -> IO RepositorySource
lookupObject' :: Repository -> Oid -> (Ptr (Ptr a) -> Ptr C'git_repository -> Ptr C'git_oid -> IO CInt) -> (Ptr (Ptr a) -> Ptr C'git_repository -> Ptr C'git_oid -> CUInt -> IO CInt) -> (COid -> ForeignPtr C'git_object -> Ptr C'git_object -> IO b) -> IO (Maybe b)Source