pub struct WriteSplitIndexRequest {
pub explicit: Option<bool>,
}Expand description
Request from update-index for the next index write.
Fields§
§explicit: Option<bool>Some(true) / Some(false) for --[no-]split-index; None uses config / test env only.
Implementations§
Source§impl WriteSplitIndexRequest
impl WriteSplitIndexRequest
Sourcepub fn want_write_split(self, cfg: &ConfigSet, index: &Index) -> bool
pub fn want_write_split(self, cfg: &ConfigSet, index: &Index) -> bool
Whether the next write should use split-index format.
Matches Git: --split-index still enables split index when core.splitIndex is false,
but emits a warning (see builtin/update-index.c).
When explicit is None, an index that was already split (split_link set after load)
stays split until --no-split-index (Git keeps istate->split_index across commands).
Trait Implementations§
Source§impl Clone for WriteSplitIndexRequest
impl Clone for WriteSplitIndexRequest
Source§fn clone(&self) -> WriteSplitIndexRequest
fn clone(&self) -> WriteSplitIndexRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WriteSplitIndexRequest
impl Debug for WriteSplitIndexRequest
Source§impl Default for WriteSplitIndexRequest
impl Default for WriteSplitIndexRequest
Source§fn default() -> WriteSplitIndexRequest
fn default() -> WriteSplitIndexRequest
Returns the “default value” for a type. Read more
impl Copy for WriteSplitIndexRequest
Auto Trait Implementations§
impl Freeze for WriteSplitIndexRequest
impl RefUnwindSafe for WriteSplitIndexRequest
impl Send for WriteSplitIndexRequest
impl Sync for WriteSplitIndexRequest
impl Unpin for WriteSplitIndexRequest
impl UnsafeUnpin for WriteSplitIndexRequest
impl UnwindSafe for WriteSplitIndexRequest
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