libgit2

worktree

Version:
Git worktree related functions

Objects

Representation of a working tree

Structs

Macros

Enums

Flags which can be passed to git_worktree_prune to alter its behavior

Functions

List names of linked working trees

Lookup a working tree by its name for a given repository

Open a worktree of a given repository

Free a previously allocated worktree

Check if worktree is valid

Initializes a git_worktree_add_options with default vaules Equivalent to creating an instance with GIT_WORKTREE_ADD_OPTIONS_INIT.

Add a new working tree

Lock worktree if not already locked

Unlock a locked worktree

Check if worktree is locked

Initializes a git_worktree_prune_options with default vaules Equivalent to creating an instance with GIT_WORKTREE_PRUNE_OPTIONS_INIT.

Is the worktree prunable with the given options?

Prune working tree