libgit2

git_diff_workdir_to_index

Version:

Compute a difference between the working directory and the index.

Signature

int git_diff_workdir_to_index(git_repository *repo, const git_diff_options *opts, git_diff_list **diff);

Parameters

In
repo

The repository.

In
opts

Structure with options to influence diff or NULL for defaults.

In
diff

A pointer to a git_diff_list pointer that will be allocated.

Returns

int

Versions