{-# OPTIONS_GHC -fno-warn-unused-imports #-} #include #include module Bindings.Libgit2.Refs where import Foreign.Ptr #strict_import import Bindings.Libgit2.Common import Bindings.Libgit2.Types import Bindings.Libgit2.Oid import Bindings.Libgit2.Strarray #ccall git_reference_lookup , Ptr (Ptr ) -> Ptr -> CString -> IO (CInt) #ccall git_reference_name_to_id , Ptr -> Ptr -> CString -> IO (CInt) #ccall git_reference_symbolic_create , Ptr (Ptr ) -> Ptr -> CString -> CString -> CInt -> IO (CInt) #ccall git_reference_create , Ptr (Ptr ) -> Ptr -> CString -> Ptr -> CInt -> IO (CInt) #ccall git_reference_target , Ptr -> IO (Ptr ) #ccall git_reference_symbolic_target , Ptr -> IO (CString) #ccall git_reference_type , Ptr -> IO () #ccall git_reference_name , Ptr -> IO (CString) #ccall git_reference_resolve , Ptr (Ptr ) -> Ptr -> IO (CInt) #ccall git_reference_owner , Ptr -> IO (Ptr ) #ccall git_reference_symbolic_set_target , Ptr (Ptr ) -> Ptr -> CString -> IO (CInt) #ccall git_reference_set_target , Ptr (Ptr ) -> Ptr -> Ptr -> IO (CInt) #ccall git_reference_rename , Ptr (Ptr ) -> Ptr -> CString -> CInt -> IO (CInt) #ccall git_reference_delete , Ptr -> IO (CInt) #ccall git_reference_list , Ptr -> Ptr -> CUInt -> IO (CInt) {- typedef int (* git_reference_foreach_cb)(const char * refname, void * payload); -} #callback git_reference_foreach_cb , CString -> Ptr () -> IO CInt #ccall git_reference_foreach , Ptr -> CUInt -> -> Ptr () -> IO (CInt) #ccall git_reference_free , Ptr -> IO () #ccall git_reference_cmp , Ptr -> Ptr -> IO (CInt) #ccall git_reference_foreach_glob , Ptr -> CString -> CUInt -> -> Ptr () -> IO (CInt) #ccall git_reference_has_log , Ptr -> IO (CInt) #ccall git_reference_is_branch , Ptr -> IO (CInt) #ccall git_reference_is_remote , Ptr -> IO (CInt) {- typedef enum { GIT_REF_FORMAT_NORMAL = 0, GIT_REF_FORMAT_ALLOW_ONELEVEL = 1 << 0, GIT_REF_FORMAT_REFSPEC_PATTERN = 1 << 1 } git_reference_normalize_t; -} #integral_t git_reference_normalize_t #num GIT_REF_FORMAT_NORMAL #num GIT_REF_FORMAT_ALLOW_ONELEVEL #num GIT_REF_FORMAT_REFSPEC_PATTERN #ccall git_reference_normalize_name , CString -> CSize -> CString -> CUInt -> IO (CInt) #ccall git_reference_peel , Ptr (Ptr ) -> Ptr -> -> IO (CInt) #ccall git_reference_is_valid_name , CString -> IO (CInt)