Diff.index_to_workdir


Description:

[ CCode ( has_construct_function = false ) ]
public Diff.index_to_workdir (Repository repository, Index? index, DiffOptions? diff_options) throws Error

Creates a Diff which compares the working directory and the index.

If index is null then repository index is used. If diff_options is null then the defaults specified in DiffOptions are used.

Parameters:

repository

a Repository.

index

a Index, or null.

diff_options

a DiffOptions, or null.

Returns:

a newly allocated Diff if there was no error, null otherwise.