Skip to content

Commit 27c6541

Browse files
committed
Add in native method signatures for push/hide globs in revwalk
1 parent 824a1c1 commit 27c6541

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

LibGit2Sharp/Core/NativeMethods.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,9 @@ public static extern int git_repository_set_workdir(
584584
[DllImport(libgit2)]
585585
public static extern int git_revwalk_hide(RevWalkerSafeHandle walker, ref GitOid oid);
586586

587+
[DllImport(libgit2)]
588+
public static extern int git_revwalk_hide_glob(RevWalkerSafeHandle walker, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(Utf8Marshaler))] string glob);
589+
587590
[DllImport(libgit2)]
588591
public static extern int git_revwalk_new(out RevWalkerSafeHandle walker, RepositorySafeHandle repo);
589592

@@ -593,6 +596,9 @@ public static extern int git_repository_set_workdir(
593596
[DllImport(libgit2)]
594597
public static extern int git_revwalk_push(RevWalkerSafeHandle walker, ref GitOid oid);
595598

599+
[DllImport(libgit2)]
600+
public static extern int git_revwalk_push_glob(RevWalkerSafeHandle walker, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(Utf8Marshaler))] string glob);
601+
596602
[DllImport(libgit2)]
597603
public static extern void git_revwalk_reset(RevWalkerSafeHandle walker);
598604

0 commit comments

Comments
 (0)