libgit2.example.status

This example demonstrates the use of the libgit2 status APIs, particularly the libgit2.types.git_status_list object, to roughly simulate the output of running git status. It serves as a simple example of using those APIs to get basic status information.

This does not have:

- Robust error handling - Colorized or paginated output formatting

This does have:

- Examples of translating command line arguments to the status options settings to mimic git status results. - A sample status formatter that matches the default "long" format from git status - A sample status formatter that matches the "short" format

Members

Enums

FORMAT_DEFAULT
anonymousenum FORMAT_DEFAULT
Undocumented in source.

Functions

lg2_status
int lg2_status(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.

Manifest constants

MAX_PATHSPEC
enum MAX_PATHSPEC;
Undocumented in source.

Structs

status_opts
struct status_opts
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Meta