This example demonstrates the use of the libgit2 status APIs,
particularly the libgit2_d.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
This example demonstrates the use of the libgit2 status APIs, particularly the libgit2_d.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