These are the luagit2 methods that help to produce annotation commit for the tracked files in a given git repository.
These annotation commits can then be used while doing merge, rebase or creating a branch from an annotated commit. Refer to this https://libgit2.org/libgit2/#v0.27.0/type/git_annotated_commit.
Contents
+---------------------------+---------------------------------+ | parameters | Returns | +===========================+=================================+ | luagit2_repository | | +---------------------------+ luagit2_annotated_commit + | reference_name(string) | | +---------------------------+---------------------------------+
luagit2_repository
: The repository to look into for the referencereference_name
: the reference_name string value using which the annotated commit will be created.
- Creates a
luagit2_annotated_commit
from given reference which should be free using annotated_commit_free. libgit2 equivalent
: https://libgit2.org/libgit2/#v0.27.0/group/annotated/git_annotated_commit_from_ref
+---------------------------+---------------------------------+ | parameters | Returns | +===========================+=================================+ | luagit2_repository | | +---------------------------+ luagit2_annotated_commit + | luagit2_oid | | +---------------------------+---------------------------------+
luagit2_repository
: The repository to look into for the given oid.luagit2_oid
: the oid to look for and to be used to create annotated commit.
- Creates a
luagit2_annotated_commit
from given revspec which should be free using annotated_commit_free. libgit2 equivalent
: https://libgit2.org/libgit2/#v0.27.0/group/annotated/git_annotated_commit_from_revspec
+---------------------------+---------------------------------+ | parameters | Returns | +===========================+=================================+ | luagit2_repository | | +---------------------------+ luagit2_annotated_commit + | luagit2_oid | | +---------------------------+---------------------------------+
luagit2_repository
: The repository to look into for the annotated commit's oid.luagit2_oid
: the annotated commit's oid to lookup for.
- Creates a
luagit2_annotated_commit
from given annotated commit's oid which should be free using annotated_commit_free. libgit2 equivalent
: https://libgit2.org/libgit2/#v0.27.0/group/annotated/git_annotated_commit_lookup
+---------------------------+---------------------------------+ | parameters | Returns | +===========================+=================================+ | luagit2_repository | | +---------------------------+ + | branch_name (string) | | +---------------------------+ + | remote_url_name (string) | | +---------------------------+ luagit2_annotated_commit + | luagit2_oid | | +---------------------------+---------------------------------+
luagit2_repository
: The repository to look into for provided values.branch_name
: The branch name of whose remote url is to be used.remote_url_name
: Name of remote url name.luagit2_oid
: the commit oid (preferably latest) of provided remote branch.
- Creates a
luagit2_annotated_commit
from given fetchhead data which should be free using annotated_commit_free. libgit2 equivalent
: https://libgit2.org/libgit2/#v0.27.0/group/annotated/git_annotated_commit_from_fetchhead
parameters | Returns |
---|---|
luagit2_annotated_commit | luagit2_oid |
luagit2_annotated_commit
: The annotated commit whose oid is to be found.
- Creates a
luagit2_oid
from given annotated_commit. libgit2 equivalent
: https://libgit2.org/libgit2/#v0.27.0/group/annotated/git_annotated_commit_id
parameters | Returns |
---|---|
luagit2_annotated_commit | None |
luagit2_annotated_commit
: The annotated commit which is to be freed.
- Frees a
luagit2_annotated_commit
. libgit2 equivalent
: https://libgit2.org/libgit2/#v0.27.0/group/annotated/git_annotated_commit_free