Skip to content

Commit aad6094

Browse files
committed
Rebase: include new commit signing callback
1 parent 8b2ed49 commit aad6094

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

LibGit2Sharp/Core/GitRebaseOptions.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,7 @@ internal class GitRebaseOptions
1717
public GitMergeOpts merge_options = new GitMergeOpts { Version = 1 };
1818

1919
public GitCheckoutOpts checkout_options = new GitCheckoutOpts { version = 1 };
20+
21+
public NativeMethods.commit_signing_callback signing_callback;
2022
}
2123
}

LibGit2Sharp/Core/NativeMethods.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,13 @@ internal static extern unsafe int git_branch_remote_name(
321321
git_repository* repo,
322322
[MarshalAs(UnmanagedType.CustomMarshaler, MarshalCookie = UniqueId.UniqueIdentifier, MarshalTypeRef = typeof(StrictUtf8Marshaler))] string canonical_branch_name);
323323

324+
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
325+
internal delegate int commit_signing_callback(
326+
IntPtr signature,
327+
IntPtr signature_field,
328+
IntPtr commit_content,
329+
IntPtr payload);
330+
324331
[DllImport(libgit2, CallingConvention = CallingConvention.Cdecl)]
325332
internal static extern unsafe int git_rebase_init(
326333
out git_rebase* rebase,

0 commit comments

Comments
 (0)