git_status_options

Options to control how git_status_foreach_ext() will issue callbacks.

Initialize with GIT_STATUS_OPTIONS_INIT. Alternatively, you can use git_status_options_init.

Members

Variables

baseline
libgit2.types.git_tree* baseline;

The baseline is the tree to be used for comparison to the working directory and index; defaults to HEAD.

flags
uint flags;

The flags value is an OR'ed combination of the git_status_opt_t values above. The default is GIT_STATUS_OPT_DEFAULTS, which matches git's default behavior.

pathspec
libgit2.strarray.git_strarray pathspec;

The pathspec is an array of path patterns to match (using fnmatch-style matching), or just an array of paths to match exactly if GIT_STATUS_OPT_DISABLE_PATHSPEC_MATCH is specified in the flags.

rename_threshold
ushort rename_threshold;

Threshold above which similar files will be considered renames. This is equivalent to the -M option. Defaults to 50.

show
.git_status_show_t show;

The show value is one of the git_status_show_t constants that control which files to scan and in what order. The default is GIT_STATUS_SHOW_INDEX_AND_WORKDIR.

version_
uint version_;

The struct version; pass GIT_STATUS_OPTIONS_VERSION.

Meta