pub struct StatusOptions { /* private fields */ }
Expand description

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

Implementations

Creates a new blank set of status options.

Select the files on which to report status.

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

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.

Flag whether untracked files will be included.

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

Flag whether ignored files will be included.

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

Flag to include unmodified files.

Flag that submodules should be skipped.

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

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).

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

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

Indicates that rename detection should be processed between the head.

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

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

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

Indicates that rename detection should include rewritten files.

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

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.

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

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.