git_worktree_add

Add a new working tree

Add a new working tree for the repository, that is create the required data structures inside the repository and check out the current HEAD at path

extern (C) nothrow @nogc
int
git_worktree_add

Parameters

out_ libgit2_d.types.git_worktree**

Output pointer containing new working tree

repo libgit2_d.types.git_repository*

Repository to create working tree for

name const(char)*

Name of the working tree

path const(char)*

Path to create working tree at

opts const(.git_worktree_add_options)*

Options to modify default behavior. May be null

Return Value

Type: int

0 or an error code

Meta