libgit2

git_status_list_new

Version:

Gather file status information and populate the git_status_list.

Note that if a pathspec is given in the git_status_options to filter the status, then the results from rename detection (if you enable it) may not be accurate. To do rename detection properly, this must be called with no pathspec so that all files can be considered.

Signature

int git_status_list_new(git_status_list **out, git_repository *repo, const git_status_options *opts);

Parameters

In
out

Pointer to store the status results in

In
repo

Repository object

In
opts

Status options structure

Returns

int

0 on success or error code

Versions