8000 GitRemoteCallbacks: add url_resolve callback · crazygoodcode/libgit2sharp@8b2ed49 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8b2ed49

Browse files
committed
GitRemoteCallbacks: add url_resolve callback
1 parent dcd16d8 commit 8b2ed49

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

LibGit2Sharp/Core/GitRemoteCallbacks.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,7 @@ internal struct GitRemoteCallbacks
3434
internal IntPtr transport;
3535

3636
internal IntPtr payload;
37+
38+
internal NativeMethods.url_resolve_callback resolve_url;
3739
}
3840
}

LibGit2Sharp/Core/NativeMethods.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2037,6 +2037,13 @@ internal static extern unsafe int git_cherrypick_commit(out git_index* index,
20372037
[DllImport(libgit2, CallingConvention = CallingConvention.Cdecl)]
20382038
internal static extern void git_transaction_free(IntPtr txn);
20392039

2040+
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
2041+
internal delegate int url_resolve_callback(
2042+
IntPtr url_resolved,
2043+
IntPtr url,
2044+
int direction,
2045+
IntPtr payload);
2046+
20402047
[DllImport(libgit2, CallingConvention = CallingConvention.Cdecl)]
20412048
internal static extern unsafe void git_worktree_free(git_worktree* worktree);
20422049

0 commit comments

Comments
 (0)
0