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
impl Copy for WriteSplitIndexRequest
Source§impl Debug for WriteSplitIndexRequest
impl Debug 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