ls_options

This example demonstrates the libgit2 index APIs to roughly simulate the output of git ls-files. git ls-files has many options and this currently does not show them.

git ls-files base command shows all paths in the index at that time. This includes staged and committed files, but unstaged files will not display.

This currently supports the default behavior and the --error-unmatch option.

Members

Variables

error_unmatch
int error_unmatch;
Undocumented in source.
file_count
size_t file_count;
Undocumented in source.
files
char*[1024] files;
Undocumented in source.

Meta