Struct git2::StatusOptions [−][src]
Options that can be provided to repo.statuses()
to control how the status
information is gathered.
Implementations
impl StatusOptions
[src]
pub fn new() -> StatusOptions
[src]
Creates a new blank set of status options.
pub fn show(&mut self, show: StatusShow) -> &mut StatusOptions
[src]
Select the files on which to report status.
The default, if unspecified, is to show the index and the working directory.
pub fn pathspec<T: IntoCString>(&mut self, pathspec: T) -> &mut StatusOptions
[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.
pub fn include_untracked(&mut self, include: bool) -> &mut StatusOptions
[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.
pub fn include_ignored(&mut self, include: bool) -> &mut StatusOptions
[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.
pub fn include_unmodified(&mut self, include: bool) -> &mut StatusOptions
[src]
Flag to include unmodified files.
pub fn exclude_submodules(&mut self, exclude: bool) -> &mut StatusOptions
[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).
pub fn recurse_untracked_dirs(&mut self, include: bool) -> &mut StatusOptions
[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).
pub fn disable_pathspec_match(&mut self, include: bool) -> &mut StatusOptions
[src]
Indicates that the given paths should be treated as literals paths, note patterns.
pub fn recurse_ignored_dirs(&mut self, include: bool) -> &mut StatusOptions
[src]
Indicates that the contents of ignored directories should be included in the status.
pub fn renames_head_to_index(&mut self, include: bool) -> &mut StatusOptions
[src]
Indicates that rename detection should be processed between the head.
pub fn renames_index_to_workdir(&mut self, include: bool) -> &mut StatusOptions
[src]
Indicates that rename detection should be run between the index and the working directory.
pub fn sort_case_sensitively(&mut self, include: bool) -> &mut StatusOptions
[src]
Override the native case sensitivity for the file system and force the output to be in case sensitive order.
pub fn sort_case_insensitively(&mut self, include: bool) -> &mut StatusOptions
[src]
Override the native case sensitivity for the file system and force the output to be in case-insensitive order.
pub fn renames_from_rewrites(&mut self, include: bool) -> &mut StatusOptions
[src]
Indicates that rename detection should include rewritten files.
pub fn no_refresh(&mut self, include: bool) -> &mut StatusOptions
[src]
Bypasses the default status behavior of doing a “soft” index reload.
pub fn update_index(&mut self, include: bool) -> &mut StatusOptions
[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.
pub fn include_unreadable(&mut self, include: bool) -> &mut StatusOptions
[src]
pub fn include_unreadable_as_untracked(
&mut self,
include: bool
) -> &mut StatusOptions
[src]
&mut self,
include: bool
) -> &mut StatusOptions
pub unsafe fn raw(&mut self) -> *const git_status_options
[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]
Auto Trait Implementations
impl RefUnwindSafe for StatusOptions
impl !Send for StatusOptions
impl !Sync for StatusOptions
impl Unpin for StatusOptions
impl UnwindSafe for StatusOptions
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,