@@ -648,6 +648,25 @@ internal static extern int git_reference_symbolic_set_target(
648
648
[ DllImport ( libgit2 ) ]
649
649
internal static extern GitReferenceType git_reference_type ( ReferenceSafeHandle reference ) ;
650
650
651
+ [ DllImport ( libgit2 ) ]
652
+ internal static extern int git_remote_connect ( RemoteSafeHandle remote , GitDirection direction ) ;
653
+
654
+ [ DllImport ( libgit2 ) ]
655
+ internal static extern int git_remote_create (
656
+ out RemoteSafeHandle remote ,
657
+ RepositorySafeHandle repo ,
658
+ [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalTypeRef = typeof ( Utf8Marshaler ) ) ] string name ,
659
+ [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalTypeRef = typeof ( Utf8Marshaler ) ) ] string url ) ;
660
+
661
+ [ DllImport ( libgit2 ) ]
662
+ internal static extern void git_remote_disconnect ( RemoteSafeHandle remote ) ;
663
+
664
+ [ DllImport ( libgit2 ) ]
665
+ internal static extern int git_remote_download (
666
+ RemoteSafeHandle remote ,
667
+ git_transfer_progress_callback progress_cb ,
668
+ IntPtr payload ) ;
669
+
651
670
[ DllImport ( libgit2 ) ]
652
671
internal static extern void git_remote_free ( IntPtr remote ) ;
653
672
@@ -661,20 +680,14 @@ internal static extern int git_remote_load(
661
680
RepositorySafeHandle repo ,
662
681
[ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalTypeRef = typeof ( Utf8Marshaler ) ) ] string name ) ;
663
682
664
- [ DllImport ( libgit2 ) ]
665
- [ return : MarshalAs ( UnmanagedType . CustomMarshaler , MarshalTypeRef = typeof ( Utf8NoCleanupMarshaler ) ) ]
666
- internal static extern string git_remote_name ( RemoteSafeHandle remote ) ;
683
+ internal delegate int git_headlist_cb ( ref GitRemoteHead remoteHeadPtr , IntPtr payload ) ;
667
684
668
685
[ DllImport ( libgit2 ) ]
669
- internal static extern int git_remote_create (
670
- out RemoteSafeHandle remote ,
671
- RepositorySafeHandle repo ,
672
- [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalTypeRef = typeof ( Utf8Marshaler ) ) ] string name ,
673
- [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalTypeRef = typeof ( Utf8Marshaler ) ) ] string url ) ;
686
+ internal static extern int git_remote_ls ( RemoteSafeHandle remote , git_headlist_cb headlist_cb , IntPtr payload ) ;
674
687
675
688
[ DllImport ( libgit2 ) ]
676
689
[ return : MarshalAs ( UnmanagedType . CustomMarshaler , MarshalTypeRef = typeof ( Utf8NoCleanupMarshaler ) ) ]
677
- internal static extern string git_remote_url ( RemoteSafeHandle remote ) ;
690
+ internal static extern string git_remote_name ( RemoteSafeHandle remote ) ;
678
691
679
692
[ DllImport ( libgit2 ) ]
680
693
internal static extern int git_remote_save ( RemoteSafeHandle remote ) ;
@@ -686,38 +699,22 @@ internal static extern void git_remote_set_cred_acquire_cb(
686
699
IntPtr payload ) ;
687
700
688
701
[ DllImport ( libgit2 ) ]
689
- internal static extern int git_repository_odb ( out ObjectDatabaseSafeHandle odb , RepositorySafeHandle repo ) ;
690
-
691
- [ DllImport ( libgit2 ) ]
692
- internal static extern int git_remote_connect ( RemoteSafeHandle remote , GitDirection direction ) ;
693
-
694
- [ DllImport ( libgit2 ) ]
695
- internal static extern void git_remote_disconnect ( RemoteSafeHandle remote ) ;
702
+ [ return : MarshalAs ( UnmanagedType . CustomMarshaler , MarshalTypeRef = typeof ( Utf8NoCleanupMarshaler ) ) ]
703
+ internal static extern string git_remote_url ( RemoteSafeHandle remote ) ;
696
704
697
705
[ DllImport ( libgit2 ) ]
698
- internal static extern int git_remote_ls ( RemoteSafeHandle remote , git_headlist_cb headlist_cb , IntPtr payload ) ;
699
-
700
- internal delegate int git_headlist_cb ( ref GitRemoteHead remoteHeadPtr , IntPtr payload ) ;
706
+ internal static extern void git_remote_set_autotag ( RemoteSafeHandle remote , TagFetchMode option ) ;
701
707
702
708
[ DllImport ( libgit2 ) ]
703
- internal static extern int git_remote_download (
709
+ internal static extern int git_remote_set_callbacks (
704
710
RemoteSafeHandle remote ,
705
- git_transfer_progress_callback progress_cb ,
706
- IntPtr payload ) ;
707
-
708
- [ DllImport ( libgit2 ) ]
709
- internal static extern void git_remote_set_autotag ( RemoteSafeHandle remote , TagFetchMode option ) ;
711
+ ref GitRemoteCallbacks callbacks ) ;
710
712
711
713
[ DllImport ( libgit2 ) ]
712
714
internal static extern int git_remote_set_fetchspec (
713
715
RemoteSafeHandle remote ,
714
716
[ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalTypeRef = typeof ( Utf8Marshaler ) ) ] string fetchrefspec ) ;
715
717
716
- [ DllImport ( libgit2 ) ]
717
- internal static extern int git_remote_set_callbacks (
718
- RemoteSafeHandle remote ,
719
- ref GitRemoteCallbacks callbacks ) ;
720
-
721
718
internal delegate void remote_progress_callback ( IntPtr str , int len , IntPtr data ) ;
722
719
723
720
internal delegate int remote_completion_callback ( RemoteCompletionType type , IntPtr data ) ;
@@ -789,6 +786,9 @@ internal static extern int git_repository_mergehead_foreach(
789
786
git_repository_mergehead_foreach_cb cb ,
790
787
IntPtr payload ) ;
791
788
789
+ [ DllImport ( libgit2 ) ]
790
+ internal static extern int git_repository_odb ( out ObjectDatabaseSafeHandle odb , RepositorySafeHandle repo ) ;
791
+
792
792
[ DllImport ( libgit2 ) ]
793
793
internal static extern int git_repository_open (
794
794
out RepositorySafeHandle repository ,
0 commit comments