Struct git2::StatusOptions [] [src]

pub struct StatusOptions { /* fields omitted */ }

Options that can be provided to repo.statuses() to control how the status information is gathered.

Methods

impl StatusOptions
[src]

[src]

Creates a new blank set of status options.

[src]

Select the files on which to report status.

The default, if unspecified, is to show the index and the working directory.

[src]

Add a path pattern to match (using fnmatch-style matching).

If the disable_pathspec_match option is given, then this is a literal path to match. If this is not called, then there will be no patterns to match and the entire directory will be used.

[src]

Flag whether untracked files will be included.

Untracked files will only be included if the workdir files are included in the status "show" option.

[src]

Flag whether ignored files will be included.

The files will only be included if the workdir files are included in the status "show" option.

[src]

Flag to include unmodified files.

[src]

Flag that submodules should be skipped.

This only applies if there are no pending typechanges to the submodule (either from or to another type).

[src]

Flag that all files in untracked directories should be included.

Normally if an entire directory is new then just the top-level directory is included (with a trailing slash on the entry name).

[src]

Indicates that the given paths should be treated as literals paths, note patterns.

[src]

Indicates that the contents of ignored directories should be included in the status.

[src]

Indicates that rename detection should be processed between the head.

[src]

Indicates that rename detection should be run between the index and the working directory.

[src]

Override the native case sensitivity for the file system and force the output to be in case sensitive order.

[src]

Override the native case sensitivity for the file system and force the output to be in case-insensitive order.

[src]

Indicates that rename detection should include rewritten files.

[src]

Bypasses the default status behavior of doing a "soft" index reload.

[src]

Refresh the stat cache in the index for files are unchanged but have out of date stat information in the index.

This will result in less work being done on subsequent calls to fetching the status.

[src]

[src]

[src]

Get a pointer to the inner list of status options.

This function is unsafe as the returned structure has interior pointers and may no longer be valid if these options continue to be mutated.

Trait Implementations

impl Default for StatusOptions
[src]

[src]

Returns the "default value" for a type. Read more