Constructor
GgitDiffnew_tree_to_tree
Declaration [src]
GgitDiff*
ggit_diff_new_tree_to_tree (
GgitRepository* repository,
GgitTree* old_tree,
GgitTree* new_tree,
GgitDiffOptions* diff_options,
GError** error
)
Description [src]
Creates a GgitDiff
which compares old_tree
and new_tree
.
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. | |
old_tree |
GgitTree |
A |
|
The argument can be NULL . | |
The data is owned by the caller of the function. | |
new_tree |
GgitTree |
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 . |