libgit2

git_commit_create_options

Version:

Signature

typedef struct git_commit_create_options { unsigned int version unsigned int allow_empty_commit const git_signature *author const git_signature *committer const char *message_encoding };

Members

unsigned int
version
unsigned int
allow_empty_commit

Flags for creating the commit.

If allow_empty_commit is specified, a commit with no changes from the prior commit (and "empty" commit) is allowed. Otherwise, commit creation will be stopped.

author

The commit author, or NULL for the default.

committer

The committer, or NULL for the default.

const char *
message_encoding

Encoding for the commit message; leave NULL for default.

Parameter To

Versions