From 8a61eec544504f9cd79cf78d7bb1694e0737ec88 Mon Sep 17 00:00:00 2001 From: Robert Date: Thu, 1 Jul 2021 14:49:29 +1000 Subject: [PATCH] Update `git_worktree_add_options` struct to include ref pointer Native struct https://github.com/libgit2/libgit2/blob/main/include/git2/worktree.h#L88 Fixes https://github.com/libgit2/libgit2sharp/issues/1885 --- LibGit2Sharp/Core/GitWorktree.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/LibGit2Sharp/Core/GitWorktree.cs b/LibGit2Sharp/Core/GitWorktree.cs index 64f90ebb7..c71cb16c0 100644 --- a/LibGit2Sharp/Core/GitWorktree.cs +++ b/LibGit2Sharp/Core/GitWorktree.cs @@ -33,8 +33,10 @@ internal enum GitWorktreePruneOptionFlags : uint internal class git_worktree_add_options { public uint version = 1; - + public int locked; + + public IntPtr @ref = IntPtr.Zero; } [StructLayout(LayoutKind.Sequential)]