@@ -103,7 +103,7 @@ internal static extern void giterr_set_str(
103103 internal static extern unsafe int git_blame_file (
104104 out git_blame * blame ,
105105 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 ,
107107 git_blame_options options ) ;
108108
109109 [ DllImport ( libgit2 ) ]
@@ -130,7 +130,7 @@ internal delegate int source_callback(
130130 internal static extern unsafe int git_blob_create_fromstream (
131131 out IntPtr stream ,
132132 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 ) ;
134134
135135 [ DllImport ( libgit2 ) ]
136136 internal static extern unsafe int git_blob_create_fromstream_commit (
@@ -141,15 +141,15 @@ internal static extern unsafe int git_blob_create_fromstream_commit(
141141 internal static extern unsafe int git_blob_create_fromchunks (
142142 ref GitOid oid ,
143143 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 ,
145145 source_callback fileCallback ,
146146 IntPtr data ) ;
147147
148148 [ DllImport ( libgit2 ) ]
149149 internal static extern unsafe int git_blob_filtered_content (
150150 GitBuf buf ,
151151 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 ,
153153 [ MarshalAs ( UnmanagedType . Bool ) ] bool check_for_binary_data ) ;
154154
155155 [ DllImport ( libgit2 ) ]
@@ -587,9 +587,9 @@ internal unsafe delegate int git_diff_binary_cb(
587587 [ DllImport ( libgit2 ) ]
588588 internal static extern unsafe int git_diff_blobs (
589589 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 ,
591591 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 ,
593593 GitDiffOptions options ,
594594 git_diff_file_cb fileCallback ,
595595 git_diff_binary_cb binaryCallback ,
@@ -672,7 +672,7 @@ internal static extern unsafe int git_ignore_add_rule(
672672 internal static extern unsafe int git_ignore_path_is_ignored (
673673 out int ignored ,
674674 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 ) ;
676676
677677 [ DllImport ( libgit2 ) ]
678678 internal static extern unsafe int git_index_add_bypath (
@@ -690,7 +690,7 @@ internal static extern unsafe int git_index_conflict_get(
690690 out git_index_entry * ours ,
691691 out git_index_entry * theirs ,
692692 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 ) ;
694694
695695 [ DllImport ( libgit2 ) ]
696696 internal static extern unsafe int git_index_conflict_iterator_new (
@@ -723,7 +723,7 @@ internal static extern unsafe void git_index_conflict_iterator_free(
723723 [ DllImport ( libgit2 ) ]
724724 internal static extern unsafe git_index_entry * git_index_get_bypath (
725725 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 ,
727727 int stage ) ;
728728
729729 [ DllImport ( libgit2 ) ]
@@ -748,7 +748,7 @@ internal static extern unsafe int git_index_read(
748748 [ DllImport ( libgit2 ) ]
749749 internal static extern unsafe int git_index_remove_bypath (
750750 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 ) ;
752752
753753
754754 [ DllImport ( libgit2 ) ]
@@ -760,7 +760,7 @@ internal static extern unsafe int git_index_remove_bypath(
760760 [ DllImport ( libgit2 ) ]
761761 internal static extern unsafe git_index_reuc_entry * git_index_reuc_get_bypath (
762762 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 ) ;
764764
765765 [ DllImport ( libgit2 ) ]
766766 internal static extern unsafe int git_index_write ( git_index * index ) ;
@@ -1623,7 +1623,7 @@ internal static extern void git_strarray_free(
16231623 internal static extern unsafe int git_submodule_lookup (
16241624 out git_submodule * reference ,
16251625 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 ) ;
16271627
16281628 [ DllImport ( libgit2 ) ]
16291629 internal static extern unsafe int git_submodule_resolve_url (
0 commit comments