libgit2_d.commit

Undocumented in source.

Members

Aliases

git_commit_signing_cb
alias git_commit_signing_cb = int function(libgit2_d.buffer.git_buf* signature, libgit2_d.buffer.git_buf* signature_field, const(char)* commit_content, void* payload)

Commit signing callback.

Functions

git_commit_amend
int git_commit_amend(libgit2_d.oid.git_oid* id, const(libgit2_d.types.git_commit)* commit_to_amend, const(char)* update_ref, const(libgit2_d.types.git_signature)* author, const(libgit2_d.types.git_signature)* committer, const(char)* message_encoding, const(char)* message, const(libgit2_d.types.git_tree)* tree)

Amend an existing commit by replacing only non-null values.

git_commit_author
const(libgit2_d.types.git_signature)* git_commit_author(const(libgit2_d.types.git_commit)* commit)

Get the author of a commit.

git_commit_author_with_mailmap
int git_commit_author_with_mailmap(libgit2_d.types.git_signature** out_, const(libgit2_d.types.git_commit)* commit, const(libgit2_d.types.git_mailmap)* mailmap)

Get the author of a commit, using the mailmap to map names and email addresses to canonical real names and email addresses.

git_commit_body
const(char)* git_commit_body(libgit2_d.types.git_commit* commit)

Get the long "body" of the git commit message.

git_commit_committer
const(libgit2_d.types.git_signature)* git_commit_committer(const(libgit2_d.types.git_commit)* commit)

Get the committer of a commit.

git_commit_committer_with_mailmap
int git_commit_committer_with_mailmap(libgit2_d.types.git_signature** out_, const(libgit2_d.types.git_commit)* commit, const(libgit2_d.types.git_mailmap)* mailmap)

Get the committer of a commit, using the mailmap to map names and email addresses to canonical real names and email addresses.

git_commit_create
int git_commit_create(libgit2_d.oid.git_oid* id, libgit2_d.types.git_repository* repo, const(char)* update_ref, const(libgit2_d.types.git_signature)* author, const(libgit2_d.types.git_signature)* committer, const(char)* message_encoding, const(char)* message, const(libgit2_d.types.git_tree)* tree, size_t parent_count, const(libgit2_d.types.git_commit)** parents)

Create new commit in the repository from a list of git_object pointers

git_commit_create_buffer
int git_commit_create_buffer(libgit2_d.buffer.git_buf* out_, libgit2_d.types.git_repository* repo, const(libgit2_d.types.git_signature)* author, const(libgit2_d.types.git_signature)* committer, const(char)* message_encoding, const(char)* message, const(libgit2_d.types.git_tree)* tree, size_t parent_count, const(libgit2_d.types.git_commit)** parents)

Create a commit and write it into a buffer

git_commit_create_v
int git_commit_create_v(libgit2_d.oid.git_oid* id, libgit2_d.types.git_repository* repo, const(char)* update_ref, const(libgit2_d.types.git_signature)* author, const(libgit2_d.types.git_signature)* committer, const(char)* message_encoding, const(char)* message, const(libgit2_d.types.git_tree)* tree, size_t parent_count, ...)

Create new commit in the repository using a variable argument list.

git_commit_create_with_signature
int git_commit_create_with_signature(libgit2_d.oid.git_oid* out_, libgit2_d.types.git_repository* repo, const(char)* commit_content, const(char)* signature, const(char)* signature_field)

Create a commit object from the given buffer and signature

git_commit_dup
int git_commit_dup(libgit2_d.types.git_commit** out_, libgit2_d.types.git_commit* source)

Create an in-memory copy of a commit. The copy must be explicitly free'd or it will leak.

git_commit_extract_signature
int git_commit_extract_signature(libgit2_d.buffer.git_buf* signature, libgit2_d.buffer.git_buf* signed_data, libgit2_d.types.git_repository* repo, libgit2_d.oid.git_oid* commit_id, const(char)* field)

Extract the signature from a commit

git_commit_free
void git_commit_free(libgit2_d.types.git_commit* commit)

Close an open commit

git_commit_header_field
int git_commit_header_field(libgit2_d.buffer.git_buf* out_, const(libgit2_d.types.git_commit)* commit, const(char)* field)

Get an arbitrary header field

git_commit_id
const(libgit2_d.oid.git_oid)* git_commit_id(const(libgit2_d.types.git_commit)* commit)

Get the id of a commit.

git_commit_lookup
int git_commit_lookup(libgit2_d.types.git_commit** commit, libgit2_d.types.git_repository* repo, const(libgit2_d.oid.git_oid)* id)

Lookup a commit object from a repository.

git_commit_lookup_prefix
int git_commit_lookup_prefix(libgit2_d.types.git_commit** commit, libgit2_d.types.git_repository* repo, const(libgit2_d.oid.git_oid)* id, size_t len)

Lookup a commit object from a repository, given a prefix of its identifier (short id).

git_commit_message
const(char)* git_commit_message(const(libgit2_d.types.git_commit)* commit)

Get the full message of a commit.

git_commit_message_encoding
const(char)* git_commit_message_encoding(const(libgit2_d.types.git_commit)* commit)

Get the encoding for the message of a commit, as a string representing a standard encoding name.

git_commit_message_raw
const(char)* git_commit_message_raw(const(libgit2_d.types.git_commit)* commit)

Get the full raw message of a commit.

git_commit_nth_gen_ancestor
int git_commit_nth_gen_ancestor(libgit2_d.types.git_commit** ancestor, const(libgit2_d.types.git_commit)* commit, uint n)

Get the commit object that is the <n>th generation ancestor of the named commit object, following only the first parents. The returned commit has to be freed by the caller.

git_commit_owner
libgit2_d.types.git_repository* git_commit_owner(const(libgit2_d.types.git_commit)* commit)

Get the repository that contains the commit.

git_commit_parent
int git_commit_parent(libgit2_d.types.git_commit** out_, const(libgit2_d.types.git_commit)* commit, uint n)

Get the specified parent of the commit.

git_commit_parent_id
const(libgit2_d.oid.git_oid)* git_commit_parent_id(const(libgit2_d.types.git_commit)* commit, uint n)

Get the oid of a specified parent for a commit. This is different from git_commit_parent, which will attempt to load the parent commit from the ODB.

git_commit_parentcount
uint git_commit_parentcount(const(libgit2_d.types.git_commit)* commit)

Get the number of parents of this commit

git_commit_raw_header
const(char)* git_commit_raw_header(const(libgit2_d.types.git_commit)* commit)

Get the full raw text of the commit header.

git_commit_summary
const(char)* git_commit_summary(libgit2_d.types.git_commit* commit)

Get the short "summary" of the git commit message.

git_commit_time
libgit2_d.types.git_time_t git_commit_time(const(libgit2_d.types.git_commit)* commit)

Get the commit time (i.e. committer time) of a commit.

git_commit_time_offset
int git_commit_time_offset(const(libgit2_d.types.git_commit)* commit)

Get the commit timezone offset (i.e. committer's preferred timezone) of a commit.

git_commit_tree
int git_commit_tree(libgit2_d.types.git_tree** tree_out, const(libgit2_d.types.git_commit)* commit)

Get the tree pointed to by a commit.

git_commit_tree_id
const(libgit2_d.oid.git_oid)* git_commit_tree_id(const(libgit2_d.types.git_commit)* commit)

Get the id of the tree pointed to by a commit. This differs from git_commit_tree in that no attempts are made to fetch an object from the ODB.

Meta