git_checkout_index

Updates files in the working tree to match the content of the index.

extern (C) nothrow @nogc
int
git_checkout_index

Parameters

repo libgit2_d.types.git_repository*

repository into which to check out (must be non-bare)

index libgit2_d.types.git_index*

index to be checked out (or null to use repository index)

opts const(.git_checkout_options)*

specifies checkout options (may be null)

Return Value

Type: int

0 on success, non-zero return value from notify_cb, or error code < 0 (use git_error_last for error details)

Meta