Struct gix_status::index_as_worktree::Options
source · pub struct Options {
pub fs: Capabilities,
pub thread_limit: Option<usize>,
pub stat: Options,
pub attributes: Attributes,
}
Expand description
Options that control how the index status with a worktree is computed.
Fields§
§fs: Capabilities
Capabilities of the file system which affect the status computation.
thread_limit: Option<usize>
If set, don’t use more than this amount of threads. Otherwise, usually use as many threads as there are logical cores. A value of 0 is interpreted as no-limit
stat: Options
Options that control how stat comparisons are made when checking if a file is fresh.
attributes: Attributes
Pre-configured state to allow processing attributes.
These are needed to potentially refresh the index with data read from the worktree, which needs to be converted back to the form stored in git.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more