@@ -581,31 +581,24 @@ internal static extern int git_filter_unregister(
581
581
[ DllImport ( libgit2 ) ]
582
582
internal static extern int git_libgit2_features ( ) ;
583
583
584
+ #region git_libgit2_opts
585
+
584
586
// Bindings for git_libgit2_opts(int option, ...):
585
587
// Varargs can be bound using __arglist in .NET, but I had trouble getting that working with Mono.
586
- // Instead of using __arglist, I enumerate the possible signatures here:
588
+ // Instead of using __arglist, I enumerate the possible signatures here.
589
+ // Currently only GIT_OPT_GET_SEARCH_PATH and GIT_OPT_SET_SEARCH_PATH are supported,
590
+ // but other overloads could be added using a similar pattern.
587
591
588
592
// git_libgit2_opts(GIT_OPT_GET_SEARCH_PATH, int level, git_buf *buf)
589
593
[ DllImport ( libgit2 , CallingConvention = CallingConvention . Cdecl ) ]
590
594
internal static extern int git_libgit2_opts ( int option , uint level , GitBuf buf ) ;
591
595
592
- // git_libgit2_opts(GIT_OPT_GET_SEARCH_PATH , int level, git_buf *buf )
596
+ // git_libgit2_opts(GIT_OPT_SET_SEARCH_PATH , int level, const char *path )
593
597
[ DllImport ( libgit2 , CallingConvention = CallingConvention . Cdecl ) ]
594
598
internal static extern int git_libgit2_opts ( int option , uint level ,
595
- [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string name ) ;
599
+ [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string path ) ;
596
600
597
- // Not yet implemented libgit2_opts signatures:
598
- // git_libgit2_opts(GIT_OPT_GET_MWINDOW_SIZE, size_t*)
599
- // git_libgit2_opts(GIT_OPT_SET_MWINDOW_SIZE, size_t)
600
- // git_libgit2_opts(GIT_OPT_GET_MWINDOW_MAPPED_LIMIT, size_t*)
601
- // git_libgit2_opts(GIT_OPT_SET_MWINDOW_MAPPED_LIMIT, size_t)
602
- // git_libgit2_opts(GIT_OPT_SET_CACHE_OBJECT_LIMIT, git_otype type, size_t size)
603
- // git_libgit2_opts(GIT_OPT_SET_CACHE_MAX_SIZE, ssize_t max_storage_bytes)
604
- // git_libgit2_opts(GIT_OPT_ENABLE_CACHING, int enabled)
605
- // git_libgit2_opts(GIT_OPT_GET_CACHED_MEMORY, ssize_t* current, ssize_t* allowed)
606
- // git_libgit2_opts(GIT_OPT_GET_TEMPLATE_PATH, git_buf*out)
607
- // git_libgit2_opts(GIT_OPT_SET_TEMPLATE_PATH, const char* path)
608
- // git_libgit2_opts(GIT_OPT_SET_SSL_CERT_LOCATIONS, const char* file, const char* path)
601
+ #endregion
609
602
610
603
[ DllImport ( libgit2 ) ]
611
604
internal static extern int git_graph_ahead_behind ( out UIntPtr ahead , out UIntPtr behind , RepositorySafeHandle repo , ref GitOid one , ref GitOid two ) ;
0 commit comments