@@ -490,7 +490,7 @@ internal static extern unsafe int git_diff_tree_to_index(
490
490
out git_diff * diff ,
491
491
git_repository * repo ,
492
492
GitObjectSafeHandle oldTree ,
493
- IndexSafeHandle index ,
493
+ git_index * index ,
494
494
GitDiffOptions options ) ;
495
495
496
496
[ DllImport ( libgit2 ) ]
@@ -502,7 +502,7 @@ internal static extern unsafe int git_diff_merge(
502
502
internal static extern unsafe int git_diff_index_to_workdir (
503
503
out git_diff * diff ,
504
504
git_repository * repo ,
505
- IndexSafeHandle index ,
505
+ git_index * index ,
506
506
GitDiffOptions options ) ;
507
507
508
508
[ DllImport ( libgit2 ) ]
@@ -624,107 +624,107 @@ internal static extern unsafe int git_ignore_path_is_ignored(
624
624
[ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictFilePathMarshaler ) ) ] FilePath path ) ;
625
625
626
626
[ DllImport ( libgit2 ) ]
627
- internal static extern int git_index_add_bypath (
628
- IndexSafeHandle index ,
627
+ internal static extern unsafe int git_index_add_bypath (
628
+ git_index * index ,
629
629
[ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictFilePathMarshaler ) ) ] FilePath path ) ;
630
630
631
631
[ DllImport ( libgit2 ) ]
632
632
internal static extern unsafe int git_index_add (
633
- IndexSafeHandle index ,
633
+ git_index * index ,
634
634
git_index_entry * entry ) ;
635
635
636
636
[ DllImport ( libgit2 ) ]
637
637
internal static extern unsafe int git_index_conflict_get (
638
638
out git_index_entry * ancestor ,
639
639
out git_index_entry * ours ,
640
640
out git_index_entry * theirs ,
641
- IndexSafeHandle index ,
641
+ git_index * index ,
642
642
[ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictFilePathMarshaler ) ) ] FilePath path ) ;
643
643
644
644
[ DllImport ( libgit2 ) ]
645
- internal static extern int git_index_conflict_iterator_new (
646
- out ConflictIteratorSafeHandle iterator ,
647
- IndexSafeHandle index ) ;
645
+ internal static extern unsafe int git_index_conflict_iterator_new (
646
+ out git_index_conflict_iterator * iterator ,
647
+ git_index * index ) ;
648
648
649
649
[ DllImport ( libgit2 ) ]
650
650
internal static extern unsafe int git_index_conflict_next (
651
651
out git_index_entry * ancestor ,
652
652
out git_index_entry * ours ,
653
653
out git_index_entry * theirs ,
654
- ConflictIteratorSafeHandle iterator ) ;
654
+ git_index_conflict_iterator * iterator ) ;
655
655
656
656
[ DllImport ( libgit2 ) ]
657
- internal static extern void git_index_conflict_iterator_free (
658
- IntPtr iterator ) ;
657
+ internal static extern unsafe void git_index_conflict_iterator_free (
658
+ git_index_conflict_iterator * iterator ) ;
659
659
660
660
[ DllImport ( libgit2 ) ]
661
- internal static extern UIntPtr git_index_entrycount ( IndexSafeHandle index ) ;
661
+ internal static extern unsafe UIntPtr git_index_entrycount ( git_index * index ) ;
662
662
663
663
[ DllImport ( libgit2 ) ]
664
664
internal static extern unsafe int git_index_entry_stage ( git_index_entry * indexentry ) ;
665
665
666
666
[ DllImport ( libgit2 ) ]
667
- internal static extern void git_index_free ( IntPtr index ) ;
667
+ internal static extern unsafe void git_index_free ( git_index * index ) ;
668
668
669
669
[ DllImport ( libgit2 ) ]
670
- internal static extern unsafe git_index_entry * git_index_get_byindex ( IndexSafeHandle index , UIntPtr n ) ;
670
+ internal static extern unsafe git_index_entry * git_index_get_byindex ( git_index * index , UIntPtr n ) ;
671
671
672
672
[ DllImport ( libgit2 ) ]
673
673
internal static extern unsafe git_index_entry * git_index_get_bypath (
674
- IndexSafeHandle index ,
674
+ git_index * index ,
675
675
[ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictFilePathMarshaler ) ) ] FilePath path ,
676
676
int stage ) ;
677
677
678
678
[ DllImport ( libgit2 ) ]
679
- internal static extern int git_index_has_conflicts ( IndexSafeHandle index ) ;
679
+ internal static extern unsafe int git_index_has_conflicts ( git_index * index ) ;
680
680
681
681
[ DllImport ( libgit2 ) ]
682
- internal static extern UIntPtr git_index_name_entrycount ( IndexSafeHandle handle ) ;
682
+ internal static extern unsafe UIntPtr git_index_name_entrycount ( git_index * handle ) ;
683
683
684
684
[ DllImport ( libgit2 ) ]
685
- internal static extern unsafe git_index_name_entry * git_index_name_get_byindex ( IndexSafeHandle handle , UIntPtr n ) ;
685
+ internal static extern unsafe git_index_name_entry * git_index_name_get_byindex ( git_index * handle , UIntPtr n ) ;
686
686
687
687
[ DllImport ( libgit2 ) ]
688
- internal static extern int git_index_open (
689
- out IndexSafeHandle index ,
688
+ internal static extern unsafe int git_index_open (
689
+ out git_index * index ,
690
690
[ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictFilePathMarshaler ) ) ] FilePath indexpath ) ;
691
691
692
692
[ DllImport ( libgit2 ) ]
693
- internal static extern int git_index_read (
694
- IndexSafeHandle index ,
693
+ internal static extern unsafe int git_index_read (
694
+ git_index * index ,
695
695
[ MarshalAs ( UnmanagedType . Bool ) ] bool force ) ;
696
696
697
697
[ DllImport ( libgit2 ) ]
698
- internal static extern int git_index_remove_bypath (
699
- IndexSafeHandle index ,
698
+ internal static extern unsafe int git_index_remove_bypath (
699
+ git_index * index ,
700
700
[ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictFilePathMarshaler ) ) ] FilePath path ) ;
701
701
702
702
703
703
[ DllImport ( libgit2 ) ]
704
- internal static extern UIntPtr git_index_reuc_entrycount ( IndexSafeHandle handle ) ;
704
+ internal static extern unsafe UIntPtr git_index_reuc_entrycount ( git_index * handle ) ;
705
705
706
706
[ DllImport ( libgit2 ) ]
707
- internal static extern unsafe git_index_reuc_entry * git_index_reuc_get_byindex ( IndexSafeHandle handle , UIntPtr n ) ;
707
+ internal static extern unsafe git_index_reuc_entry * git_index_reuc_get_byindex ( git_index * handle , UIntPtr n ) ;
708
708
709
709
[ DllImport ( libgit2 ) ]
710
710
internal static extern unsafe git_index_reuc_entry * git_index_reuc_get_bypath (
711
- IndexSafeHandle handle ,
711
+ git_index * handle ,
712
712
[ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictFilePathMarshaler ) ) ] FilePath path ) ;
713
713
714
714
[ DllImport ( libgit2 ) ]
715
- internal static extern int git_index_write ( IndexSafeHandle index ) ;
715
+ internal static extern unsafe int git_index_write ( git_index * index ) ;
716
716
717
717
[ DllImport ( libgit2 ) ]
718
- internal static extern int git_index_write_tree ( out GitOid treeOid , IndexSafeHandle index ) ;
718
+ internal static extern unsafe int git_index_write_tree ( out GitOid treeOid , git_index * index ) ;
719
719
720
720
[ DllImport ( libgit2 ) ]
721
- internal static extern unsafe int git_index_write_tree_to ( out GitOid treeOid , IndexSafeHandle index , git_repository * repo ) ;
721
+ internal static extern unsafe int git_index_write_tree_to ( out GitOid treeOid , git_index * index , git_repository * repo ) ;
722
722
723
723
[ DllImport ( libgit2 ) ]
724
- internal static extern int git_index_read_tree ( IndexSafeHandle index , GitObjectSafeHandle tree ) ;
724
+ internal static extern unsafe int git_index_read_tree ( git_index * index , GitObjectSafeHandle tree ) ;
725
725
726
726
[ DllImport ( libgit2 ) ]
727
- internal static extern int git_index_clear ( IndexSafeHandle index ) ;
727
+ internal static extern unsafe int git_index_clear ( git_index * index ) ;
728
728
729
729
[ DllImport ( libgit2 ) ]
730
730
internal static extern unsafe int git_merge_base_many (
@@ -780,7 +780,7 @@ internal static extern unsafe int git_merge(
780
780
781
781
[ DllImport ( libgit2 ) ]
782
782
internal static extern unsafe int git_merge_commits (
783
- out IndexSafeHandle index ,
783
+ out git_index * index ,
784
784
git_repository * repo ,
785
785
GitObjectSafeHandle our_commit ,
786
786
GitObjectSafeHandle their_commit ,
@@ -1322,7 +1322,7 @@ internal static extern unsafe int git_repository_ident(
1322
1322
git_repository * repo ) ;
1323
1323
1324
1324
[ DllImport ( libgit2 ) ]
1325
- internal static extern unsafe int git_repository_index ( out IndexSafeHandle index , git_repository * repo ) ;
1325
+ internal static extern unsafe int git_repository_index ( out git_index * index , git_repository * repo ) ;
1326
1326
1327
1327
[ DllImport ( libgit2 ) ]
1328
1328
internal static extern unsafe int git_repository_init_ext (
@@ -1388,7 +1388,7 @@ internal static extern unsafe int git_repository_set_ident(
1388
1388
[ DllImport ( libgit2 ) ]
1389
1389
internal static extern unsafe void git_repository_set_index (
1390
1390
git_repository * repository ,
1391
- IndexSafeHandle index ) ;
1391
+ git_index * index ) ;
1392
1392
1393
1393
[ DllImport ( libgit2 ) ]
1394
1394
internal static extern unsafe int git_repository_set_workdir (
0 commit comments