libgit2

git_commit_create_ext_options

Version:

Signature

typedef struct git_commit_create_ext_options { unsigned int version const char *update_ref 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
const char *
update_ref

If not NULL, the name of the reference that will be updated to point to this commit. If the reference is not direct, it will be resolved to a direct reference. Use HEAD to update the HEAD of the current branch and make it point to this commit. If the reference doesn't exist yet, it will be created. If it does exist, the first parent must be the tip of this branch.

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