git_reset_default

Updates some entries in the index from the target commit tree.

The scope of the updated entries is determined by the paths being passed in the pathspec parameters.

Passing a null target will result in removing entries in the index matching the provided pathspecs.

Parameters

repo libgit2_d.types.git_repository*

Repository where to perform the reset operation.

target const(libgit2_d.types.git_object)*

The committish which content will be used to reset the content of the index.

pathspecs const(libgit2_d.strarray.git_strarray)*

List of pathspecs to operate on.

Return Value

Type: int

0 on success or an error code < 0

Meta