libgit2.example.tag

The following example partially reimplements the git tag command and some of its options.

These commands should work:

- Tag name listing (tag) - Filtered tag listing with messages (tag -n3 -l "v0.1*") - Lightweight tag creation (tag test v0.18.0) - Tag creation (tag -a -m "Test message" test v0.18.0) - Tag deletion (tag -d test)

The command line parsing logic is simplified and doesn't handle all of the use cases.

Members

Aliases

tag_action
alias tag_action = void function(.tag_state* state)

An action to execute based on the command line arguments

Functions

lg2_tag
int lg2_tag(libgit2.types.git_repository* repo, int argc, char** argv)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Structs

tag_options
struct tag_options

tag_options represents the parsed command line options

tag_state
struct tag_state

tag_state represents the current program state for dragging around

Meta