Commits the staged changes in the repository; this is a near analog to
git commit -m message.
By default, empty commits are not allowed.
int git_commit_create_from_stage(git_oid *id, git_repository *repo, 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
opts
options for creating the commit
int
0 on success, GIT_EUNCHANGED if there were no changes to commit, or an error code