#include #include module Bindings.Libgit2.Repository where #strict_import import Bindings.Libgit2.Common import Bindings.Libgit2.Types import Bindings.Libgit2.Oid #ccall git_repository_open , Ptr (Ptr ) -> CString -> IO (CInt) #ccall git_repository_discover , CString -> CSize -> CString -> CInt -> CString -> IO (CInt) {- enum { GIT_REPOSITORY_OPEN_NO_SEARCH = 1 << 0, GIT_REPOSITORY_OPEN_CROSS_FS = 1 << 1 }; -} #num GIT_REPOSITORY_OPEN_NO_SEARCH #num GIT_REPOSITORY_OPEN_CROSS_FS #ccall git_repository_open_ext , Ptr (Ptr ) -> CString -> CUInt -> CString -> IO (CInt) #ccall git_repository_free , Ptr -> IO () #ccall git_repository_init , Ptr (Ptr ) -> CString -> CUInt -> IO (CInt) #ccall git_repository_head , Ptr (Ptr ) -> Ptr -> IO (CInt) #ccall git_repository_head_detached , Ptr -> IO (CInt) #ccall git_repository_head_orphan , Ptr -> IO (CInt) #ccall git_repository_is_empty , Ptr -> IO (CInt) #ccall git_repository_path , Ptr -> IO (CString) #ccall git_repository_workdir , Ptr -> IO (CString) #ccall git_repository_set_workdir , Ptr -> CString -> IO (CInt) #ccall git_repository_is_bare , Ptr -> IO (CInt) #ccall git_repository_config , Ptr (Ptr ) -> Ptr -> IO (CInt) #ccall git_repository_set_config , Ptr -> Ptr -> IO () #ccall git_repository_odb , Ptr (Ptr ) -> Ptr -> IO (CInt) #ccall git_repository_set_odb , Ptr -> Ptr -> IO () #ccall git_repository_index , Ptr (Ptr ) -> Ptr -> IO (CInt) #ccall git_repository_set_index , Ptr -> Ptr -> IO ()