@@ -103,7 +103,7 @@ internal static extern void giterr_set_str(
103
103
internal static extern unsafe int git_blame_file (
104
104
out git_blame * blame ,
105
105
git_repository * repo ,
106
- [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictFilePathMarshaler ) ) ] FilePath path ,
106
+ [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string path ,
107
107
git_blame_options options ) ;
108
108
109
109
[ DllImport ( libgit2 ) ]
@@ -130,7 +130,7 @@ internal delegate int source_callback(
130
130
internal static extern unsafe int git_blob_create_fromstream (
131
131
out IntPtr stream ,
132
132
git_repository * repositoryPtr ,
133
- [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictFilePathMarshaler ) ) ] FilePath hintpath ) ;
133
+ [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string hintpath ) ;
134
134
135
135
[ DllImport ( libgit2 ) ]
136
136
internal static extern unsafe int git_blob_create_fromstream_commit (
@@ -141,15 +141,15 @@ internal static extern unsafe int git_blob_create_fromstream_commit(
141
141
internal static extern unsafe int git_blob_create_fromchunks (
142
142
ref GitOid oid ,
143
143
git_repository * repositoryPtr ,
144
- [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictFilePathMarshaler ) ) ] FilePath hintpath ,
144
+ [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string hintpath ,
145
145
source_callback fileCallback ,
146
146
IntPtr data ) ;
147
147
148
148
[ DllImport ( libgit2 ) ]
149
149
internal static extern unsafe int git_blob_filtered_content (
150
150
GitBuf buf ,
151
151
git_object * blob ,
152
- [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictFilePathMarshaler ) ) ] FilePath as_path ,
152
+ [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string as_path ,
153
153
[ MarshalAs ( UnmanagedType . Bool ) ] bool check_for_binary_data ) ;
154
154
155
155
[ DllImport ( libgit2 ) ]
@@ -587,9 +587,9 @@ internal unsafe delegate int git_diff_binary_cb(
587
587
[ DllImport ( libgit2 ) ]
588
588
internal static extern unsafe int git_diff_blobs (
589
589
git_object * oldBlob ,
590
- [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictFilePathMarshaler ) ) ] FilePath old_as_path ,
590
+ [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string old_as_path ,
591
591
git_object * newBlob ,
592
- [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictFilePathMarshaler ) ) ] FilePath new_as_path ,
592
+ [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string new_as_path ,
593
593
GitDiffOptions options ,
594
594
git_diff_file_cb fileCallback ,
595
595
git_diff_binary_cb binaryCallback ,
@@ -672,7 +672,7 @@ internal static extern unsafe int git_ignore_add_rule(
672
672
internal static extern unsafe int git_ignore_path_is_ignored (
673
673
out int ignored ,
674
674
git_repository * repo ,
675
- [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictFilePathMarshaler ) ) ] FilePath path ) ;
675
+ [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string path ) ;
676
676
677
677
[ DllImport ( libgit2 ) ]
678
678
internal static extern unsafe int git_index_add_bypath (
@@ -690,7 +690,7 @@ internal static extern unsafe int git_index_conflict_get(
690
690
out git_index_entry * ours ,
691
691
out git_index_entry * theirs ,
692
692
git_index * index ,
693
- [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictFilePathMarshaler ) ) ] FilePath path ) ;
693
+ [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string path ) ;
694
694
695
695
[ DllImport ( libgit2 ) ]
696
696
internal static extern unsafe int git_index_conflict_iterator_new (
@@ -723,7 +723,7 @@ internal static extern unsafe void git_index_conflict_iterator_free(
723
723
[ DllImport ( libgit2 ) ]
724
724
internal static extern unsafe git_index_entry * git_index_get_bypath (
725
725
git_index * index ,
726
- [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictFilePathMarshaler ) ) ] FilePath path ,
726
+ [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string path ,
727
727
int stage ) ;
728
728
729
729
[ DllImport ( libgit2 ) ]
@@ -748,7 +748,7 @@ internal static extern unsafe int git_index_read(
748
748
[ DllImport ( libgit2 ) ]
749
749
internal static extern unsafe int git_index_remove_bypath (
750
750
git_index * index ,
751
- [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictFilePathMarshaler ) ) ] FilePath path ) ;
751
+ [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string path ) ;
752
752
753
753
754
754
[ DllImport ( libgit2 ) ]
@@ -760,7 +760,7 @@ internal static extern unsafe int git_index_remove_bypath(
760
760
[ DllImport ( libgit2 ) ]
761
761
internal static extern unsafe git_index_reuc_entry * git_index_reuc_get_bypath (
762
762
git_index * handle ,
763
- [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictFilePathMarshaler ) ) ] FilePath path ) ;
763
+ [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string path ) ;
764
764
765
765
[ DllImport ( libgit2 ) ]
766
766
internal static extern unsafe int git_index_write ( git_index * index ) ;
@@ -1623,7 +1623,7 @@ internal static extern void git_strarray_free(
1623
1623
internal static extern unsafe int git_submodule_lookup (
1624
1624
out git_submodule * reference ,
1625
1625
git_repository * repo ,
1626
- [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictFilePathMarshaler ) ) ] FilePath name ) ;
1626
+ [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalCookie = UniqueId . UniqueIdentifier , MarshalTypeRef = typeof ( StrictUtf8Marshaler ) ) ] string name ) ;
1627
1627
1628
1628
[ DllImport ( libgit2 ) ]
1629
1629
internal static extern unsafe int git_submodule_resolve_url (
0 commit comments