@@ -190,11 +190,11 @@ internal static extern int git_commit_create(
190
190
[ MarshalAs ( UnmanagedType . LPArray , SizeParamIndex = 7 ) ] [ In ] IntPtr [ ] parents ) ;
191
191
192
192
[ DllImport ( libgit2 ) ]
193
- [ return : MarshalAs ( UnmanagedType . CustomMarshaler , MarshalTypeRef = typeof ( Utf8Marshaler ) ) ]
193
+ [ return : MarshalAs ( UnmanagedType . CustomMarshaler , MarshalTypeRef = typeof ( Utf8NoCleanupMarshaler ) ) ]
194
194
internal static extern string git_commit_message ( GitObjectSafeHandle commit ) ;
195
195
196
196
[ DllImport ( libgit2 ) ]
197
- [ return : MarshalAs ( UnmanagedType . CustomMarshaler , MarshalTypeRef = typeof ( Utf8Marshaler ) ) ]
197
+ [ return : MarshalAs ( UnmanagedType . CustomMarshaler , MarshalTypeRef = typeof ( Utf8NoCleanupMarshaler ) ) ]
198
198
internal static extern string git_commit_message_encoding ( GitObjectSafeHandle commit ) ;
199
199
200
200
[ DllImport ( libgit2 ) ]
@@ -459,7 +459,7 @@ internal static extern int git_note_create(
459
459
internal static extern void git_note_free ( IntPtr note ) ;
460
460
461
461
[ DllImport ( libgit2 ) ]
462
- [ return : MarshalAs ( UnmanagedType . CustomMarshaler , MarshalTypeRef = typeof ( Utf8Marshaler ) ) ]
462
+ [ return : MarshalAs ( UnmanagedType . CustomMarshaler , MarshalTypeRef = typeof ( Utf8NoCleanupMarshaler ) ) ]
463
463
internal static extern string git_note_message ( NoteSafeHandle note ) ;
464
464
465
465
[ DllImport ( libgit2 ) ]
@@ -482,7 +482,7 @@ internal static extern int git_note_remove(
482
482
483
483
[ DllImport ( libgit2 ) ]
484
484
internal static extern int git_note_default_ref (
485
- [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalTypeRef = typeof ( Utf8Marshaler ) ) ] out string notes_ref ,
485
+ [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalTypeRef = typeof ( Utf8NoCleanupMarshaler ) ) ] out string notes_ref ,
486
486
RepositorySafeHandle repo ) ;
487
487
488
488
internal delegate int git_note_foreach_cb (
@@ -572,7 +572,7 @@ internal static extern int git_reference_lookup(
572
572
[ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalTypeRef = typeof ( Utf8Marshaler ) ) ] string name ) ;
573
573
574
574
[ DllImport ( libgit2 ) ]
575
- [ return : MarshalAs ( UnmanagedType . CustomMarshaler , MarshalTypeRef = typeof ( Utf8Marshaler ) ) ]
575
+ [ return : MarshalAs ( UnmanagedType . CustomMarshaler , MarshalTypeRef = typeof ( Utf8NoCleanupMarshaler ) ) ]
576
576
internal static extern string git_reference_name ( ReferenceSafeHandle reference ) ;
577
577
578
578
[ DllImport ( libgit2 ) ]
@@ -596,7 +596,7 @@ internal static extern int git_reference_symbolic_set_target(
596
596
[ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalTypeRef = typeof ( Utf8Marshaler ) ) ] string target ) ;
597
597
598
598
[ DllImport ( libgit2 ) ]
599
- [ return : MarshalAs ( UnmanagedType . CustomMarshaler , MarshalTypeRef = typeof ( Utf8Marshaler ) ) ]
599
+ [ return : MarshalAs ( UnmanagedType . CustomMarshaler , MarshalTypeRef = typeof ( Utf8NoCleanupMarshaler ) ) ]
600
600
internal static extern string git_reference_symbolic_target ( ReferenceSafeHandle reference ) ;
601
601
602
602
[ DllImport ( libgit2 ) ]
@@ -612,7 +612,7 @@ internal static extern int git_remote_load(
612
612
[ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalTypeRef = typeof ( Utf8Marshaler ) ) ] string name ) ;
613
613
614
614
[ DllImport ( libgit2 ) ]
615
- [ return : MarshalAs ( UnmanagedType . CustomMarshaler , MarshalTypeRef = typeof ( Utf8Marshaler ) ) ]
615
+ [ return : MarshalAs ( UnmanagedType . CustomMarshaler , MarshalTypeRef = typeof ( Utf8NoCleanupMarshaler ) ) ]
616
616
internal static extern string git_remote_name ( RemoteSafeHandle remote ) ;
617
617
618
618
[ DllImport ( libgit2 ) ]
@@ -623,7 +623,7 @@ internal static extern int git_remote_create(
623
623
[ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalTypeRef = typeof ( Utf8Marshaler ) ) ] string url ) ;
624
624
625
625
[ DllImport ( libgit2 ) ]
626
- [ return : MarshalAs ( UnmanagedType . CustomMarshaler , MarshalTypeRef = typeof ( Utf8Marshaler ) ) ]
626
+ [ return : MarshalAs ( UnmanagedType . CustomMarshaler , MarshalTypeRef = typeof ( Utf8NoCleanupMarshaler ) ) ]
627
627
internal static extern string git_remote_url ( RemoteSafeHandle remote ) ;
628
628
629
629
[ DllImport ( libgit2 ) ]
@@ -708,7 +708,7 @@ internal static extern int git_repository_open(
708
708
[ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalTypeRef = typeof ( FilePathMarshaler ) ) ] FilePath path ) ;
709
709
710
710
[ DllImport ( libgit2 ) ]
711
- [ return : MarshalAs ( UnmanagedType . CustomMarshaler , MarshalTypeRef = typeof ( FilePathMarshaler ) ) ]
711
+ [ return : MarshalAs ( UnmanagedType . CustomMarshaler , MarshalTypeRef = typeof ( FilePathNoCleanupMarshaler ) ) ]
712
712
internal static extern FilePath git_repository_path ( RepositorySafeHandle repository ) ;
713
713
714
714
[ DllImport ( libgit2 ) ]
@@ -732,7 +732,7 @@ internal static extern int git_repository_state(
732
732
RepositorySafeHandle repository ) ;
733
733
734
734
[ DllImport ( libgit2 ) ]
735
- [ return : MarshalAs ( UnmanagedType . CustomMarshaler , MarshalTypeRef = typeof ( FilePathMarshaler ) ) ]
735
+ [ return : MarshalAs ( UnmanagedType . CustomMarshaler , MarshalTypeRef = typeof ( FilePathNoCleanupMarshaler ) ) ]
736
736
internal static extern FilePath git_repository_workdir ( RepositorySafeHandle repository ) ;
737
737
738
738
[ DllImport ( libgit2 ) ]
@@ -819,11 +819,11 @@ internal static extern int git_tag_delete(
819
819
[ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalTypeRef = typeof ( Utf8Marshaler ) ) ] string tagName ) ;
820
820
821
821
[ DllImport ( libgit2 ) ]
822
- [ return : MarshalAs ( UnmanagedType . CustomMarshaler , MarshalTypeRef = typeof ( Utf8Marshaler ) ) ]
822
+ [ return : MarshalAs ( UnmanagedType . CustomMarshaler , MarshalTypeRef = typeof ( Utf8NoCleanupMarshaler ) ) ]
823
823
internal static extern string git_tag_message ( GitObjectSafeHandle tag ) ;
824
824
825
825
[ DllImport ( libgit2 ) ]
826
- [ return : MarshalAs ( UnmanagedType . CustomMarshaler , MarshalTypeRef = typeof ( Utf8Marshaler ) ) ]
826
+ [ return : MarshalAs ( UnmanagedType . CustomMarshaler , MarshalTypeRef = typeof ( Utf8NoCleanupMarshaler ) ) ]
827
827
internal static extern string git_tag_name ( GitObjectSafeHandle tag ) ;
828
828
829
829
[ DllImport ( libgit2 ) ]
@@ -862,7 +862,7 @@ internal static extern int git_tree_entry_bypath(
862
862
internal static extern OidSafeHandle git_tree_entry_id ( SafeHandle entry ) ;
863
863
864
864
[ DllImport ( libgit2 ) ]
865
- [ return : MarshalAs ( UnmanagedType . CustomMarshaler , MarshalTypeRef = typeof ( Utf8Marshaler ) ) ]
865
+ [ return : MarshalAs ( UnmanagedType . CustomMarshaler , MarshalTypeRef = typeof ( Utf8NoCleanupMarshaler ) ) ]
866
866
internal static extern string git_tree_entry_name ( SafeHandle entry ) ;
867
867
868
868
[ DllImport ( libgit2 ) ]
0 commit comments