Constructor
GgitDiffnew_index_to_workdir
Declaration [src]
GgitDiff*
ggit_diff_new_index_to_workdir (
GgitRepository* repository,
GgitIndex* index,
GgitDiffOptions* diff_options,
GError** error
)
Description [src]
Creates a GgitDiff 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
ggit_diff_options_new() are used.
Parameters
repository |
GgitRepository |
A |
|
| The data is owned by the caller of the function. | |
index |
GgitIndex |
A |
|
The argument can be NULL. | |
| The data is owned by the caller of the function. | |
diff_options |
GgitDiffOptions |
A |
|
The argument can be NULL. | |
| The data is owned by the caller of the function. | |
error |
GError ** |
The return location for a GError*, or NULL. |
Return value
| Returns: | GgitDiff |
A newly allocated |
|
| The caller of the function takes ownership of the data, and is responsible for freeing it. | |
The return value can be NULL. |