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.
@param repo Repository where to perform the reset operation.
@param target The committish which content will be used to reset the content of the index.
@param pathspecs List of pathspecs to operate on.
@return 0 on success or an error code < 0
See Implementation
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.
@param repo Repository where to perform the reset operation.
@param target The committish which content will be used to reset the content of the index.
@param pathspecs List of pathspecs to operate on.
@return 0 on success or an error code < 0