1. Annotated

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.

1.1. annotated_commit_from_ref

parameters Returns
luagit2_repository luagit2_annotated_commit
reference_name(string)
  1. luagit2_repository : The repository to look into for the reference
  2. reference_name : the reference_name string value using which the annotated commit will be created.

1.2. annotated_commit_from_revspec

parameters Returns
luagit2_repository luagit2_annotated_commit
luagit2_oid
  1. luagit2_repository : The repository to look into for the given oid.
  2. luagit2_oid : the oid to look for and to be used to create annotated commit.

1.3. annotated_commit_lookup

parameters Returns
luagit2_repository luagit2_annotated_commit
luagit2_oid
  1. luagit2_repository : The repository to look into for the annotated commit’s oid.
  2. luagit2_oid : the annotated commit’s oid to lookup for.

1.4. annotated_commit_from_fetchhead

parameters Returns
luagit2_repository luagit2_annotated_commit
branch_name (string)
remote_url_name (string)
luagit2_oid
  1. luagit2_repository : The repository to look into for provided values.
  2. branch_name : The branch name of whose remote url is to be used.
  3. remote_url_name : Name of remote url name.
  4. luagit2_oid : the commit oid (preferably latest) of provided remote branch.

1.5. annotated_commit_id

parameters Returns
luagit2_annotated_commit luagit2_oid
  1. luagit2_annotated_commit : The annotated commit whose oid is to be found.

1.6. annotated_commit_free

parameters Returns
luagit2_annotated_commit None
  1. luagit2_annotated_commit : The annotated commit which is to be freed.