8000 Write P/Invoke signatures for git_ignore · freevoid/libgit2sharp@aefc6c2 · GitHub
[go: up one dir, main page]

Skip to content

Commit aefc6c2

Browse files
committed
Write P/Invoke signatures for git_ignore
1 parent 860cdc7 commit aefc6c2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

LibGit2Sharp/Core/NativeMethods.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,14 @@ public static extern int git_diff_blobs(
336336
git_diff_hunk_fn hunkCallback,
337337
git_diff_data_fn lineCallback);
338338

339+
[DllImport(libgit2)]
340+
public static extern int git_ignore_add_rule(
341+
RepositorySafeHandle repo,
342+
[MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof (Utf8Marshaler))] string rules);
343+
344+
[DllImport(libgit2)]
345+
public static extern int git_ignore_clear_internal_rules(RepositorySafeHandle repo);
346+
339347
[DllImport(libgit2)]
340348
public static extern int git_index_add(
341349
IndexSafeHandle index,

0 commit comments

Comments
 (0)
0