Amends the HEAD commit in the repository using the given tree.
int git_commit_amend_from_tree(git_oid *id, git_repository *repo, const git_tree *tree, const char *message, const git_commit_create_options *opts);
In
id
pointer to store the new commit's object id
In
repo
repository to commit changes in
In
tree
tree to point the commit to
In
opts
options for creating the commit
int
0 on success or an error code