Class
GgitCommit
Instance methods
ggit_commit_amend
Amend an existing commit. If update_ref
is not NULL
, the given reference will
be updated to point to the newly created commit. Use “HEAD” to update the
HEAD of the current branch and make it point to this commit.
ggit_commit_get_author
Gets the author of commit
. The returned value must be free’d with g_object_unref().
ggit_commit_get_committer
Gets the committer of commit
. The returned value must be free’d with g_object_unref().
ggit_commit_get_message
Gets the full message of commit
. The resulting message is always encoded
in UTF-8.
ggit_commit_get_message_encoding
Get the encoding for the message of a commit, as a string representing a standard encoding name.
ggit_commit_get_nth_ancestor
Gets the commit object that is the n-th generation ancestor
of the named commit object, following only the first parents.
Passing 0
to the n
parameter returns another instance of commit
.
ggit_commit_get_parents
Gets the parents collection for commit
.
ggit_commit_get_subject
Gets the subject of commit
. The subject of a commit is the first line of
the commit message (as per convention). The resulting subject is always
encoded in UTF-8.
ggit_commit_get_tree
Get the tree object for commit
.
ggit_commit_get_tree_id
Get the GgitOId
of the tree of commit
. Note that this is more efficient
than getting the tree object with ggit_commit_get_tree()
because no additional
files need to be read from disk.