[ CCode ( has_construct_function = false ) ]
public Diff.tree_to_index (Repository repository, Tree? old_tree, Index? index, DiffOptions? diff_options) throws Error
Creates a Diff which compares old_tree
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.
repository |
a Repository. |
old_tree |
a Tree to diff from. |
index |
a Index, or null. |
diff_options |
a DiffOptions, or null. |
a newly allocated Diff if there was no error, null otherwise. |