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 const git_commit_header *extra_headers size_t extra_headers_len git_commit_signature_cb sign void *payload };

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 (an "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.

extra_headers

Extra headers can be specified as an array of field name and value pairs.

size_t
extra_headers_len

Number of extra headers

sign

Signing callback; leave NULL for no commit signing.

void *
payload

Callback payload (optional)

Parameter To

Versions