An "annotated commit" is a commit that contains information about how the commit was resolved, which can be used for maintaining the user's "intent" through commands like merge and rebase. For example, if a user wants to "merge HEAD" then an annotated commit is used to both contain the HEAD commit and the fact that it was resolved as the HEAD ref.
Annotated commits are commits with additional metadata about how the commit was resolved, which can be used for maintaining the user's "intent" through commands like merge and rebase
Creates a git_annotated_commit
from the given reference The resulting git_annotated_commit must be freed with git_annotated_commit_free
.
Creates a git_annotated_commit
from the given fetch head data The resulting git_annotated_commit must be freed with git_annotated_commit_free
.
Creates a git_annotated_commit
from the given commit id The resulting git_annotated_commit must be freed with git_annotated_commit_free
.
Creates a git_annotated_commit
from a revision string
Gets the commit ID that the given git_annotated_commit
refers to
Get the refname that the given git_annotated_commit
refers to