#include #include module Bindings.Libgit2.Index where #strict_import import Bindings.Libgit2.Common import Bindings.Libgit2.Types import Bindings.Libgit2.Oid #num GIT_IDXENTRY_NAMEMASK #num GIT_IDXENTRY_STAGEMASK #num GIT_IDXENTRY_EXTENDED #num GIT_IDXENTRY_VALID #num GIT_IDXENTRY_STAGESHIFT {- typedef struct { git_time_t seconds; unsigned int nanoseconds; } git_index_time; -} #starttype git_index_time #field seconds , CTime #field nanoseconds , CUInt #stoptype {- typedef struct git_index_entry { git_index_time ctime; git_index_time mtime; unsigned int dev; unsigned int ino; unsigned int mode; unsigned int uid; unsigned int gid; git_off_t file_size; git_oid oid; unsigned short flags; unsigned short flags_extended; char *path; } git_index_entry; -} #starttype git_index_entry #field ctime , #field mtime , #field dev , CUInt #field ino , CUInt #field mode , CUInt #field uid , CUInt #field gid , CUInt #field file_size , #field oid , #field flags , CUShort #field flags_extended , CUShort #field path , CString #stoptype #ccall git_index_open_bare , Ptr (Ptr ) -> CString -> IO (CInt) #ccall git_index_open_inrepo , Ptr (Ptr ) -> Ptr -> IO (CInt) #ccall git_index_clear , Ptr -> IO () #ccall git_index_free , Ptr -> IO () #ccall git_index_read , Ptr -> IO (CInt) #ccall git_index_write , Ptr -> IO (CInt) #ccall git_index_find , Ptr -> CString -> IO (CInt) #ccall git_index_add , Ptr -> CString -> CInt -> IO (CInt) #ccall git_index_remove , Ptr -> CInt -> IO (CInt) #ccall git_index_insert , Ptr -> Ptr -> IO (CInt) #ccall git_index_get , Ptr -> CInt -> IO (Ptr ) #ccall git_index_entrycount , Ptr -> IO (CUInt)