Skip to content

Commit 8a61eec

Browse files
committed
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 #1885
1 parent 689dcf2 commit 8a61eec

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

LibGit2Sharp/Core/GitWorktree.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,10 @@ internal enum GitWorktreePruneOptionFlags : uint
3333
internal class git_worktree_add_options
3434
{
3535
public uint version = 1;
36-
36+
3737
public int locked;
38+
39+
public IntPtr @ref = IntPtr.Zero;
3840
}
3941

4042
[StructLayout(LayoutKind.Sequential)]

0 commit comments

Comments
 (0)