pub struct GeneralConfig {Show 16 fields
pub always_show_help: BoolConfigEntry,
pub confirm_quit: BoolConfigEntry,
pub refresh_on_file_change: BoolConfigEntry,
pub confirm_discard: ConfirmDiscardOption,
pub collapsed_sections: Vec<String>,
pub stash_list_limit: usize,
pub recent_commits_limit: usize,
pub log_author_width: usize,
pub mouse_support: bool,
pub mouse_scroll_lines: usize,
pub max_input_bytes: u64,
pub verbose_branch_status: bool,
pub hide: Vec<String>,
pub visit_context_lines: bool,
pub diff_renderer: DiffRendererConfig,
pub log_renderer: LogRendererConfig,
}Fields§
§always_show_help: BoolConfigEntry§confirm_quit: BoolConfigEntry§refresh_on_file_change: BoolConfigEntry§confirm_discard: ConfirmDiscardOption§collapsed_sections: Vec<String>§stash_list_limit: usize§recent_commits_limit: usize§mouse_support: bool§mouse_scroll_lines: usize§max_input_bytes: u64The most input gitu will read, as a pager or when putting a command
again. It is read in one pass before anything is drawn, so this is what
stops a git log -p over a whole history from showing nothing for
minutes. What is past the limit is dropped, not deferred.
verbose_branch_status: boolWhether the branch section uses git’s wording - ‘On branch {name}’ over a line placing it relative to its upstream - or the branch name alone.
hide: Vec<String>Globs whose files are dropped from a paged view, as if the patch never had them. Generated code and fixtures recur, so hiding them is worth saying once rather than per session.
visit_context_lines: boolWhether the cursor stops on a diff’s unchanged lines. Nothing can be staged there, so they are skipped by default; reading a patch line by line wants them.
diff_renderer: DiffRendererConfig§log_renderer: LogRendererConfigTrait Implementations§
Source§impl Debug for GeneralConfig
impl Debug for GeneralConfig
Source§impl Default for GeneralConfig
impl Default for GeneralConfig
Source§impl<'de> Deserialize<'de> for GeneralConfig
impl<'de> Deserialize<'de> for GeneralConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GeneralConfig
impl RefUnwindSafe for GeneralConfig
impl Send for GeneralConfig
impl Sync for GeneralConfig
impl Unpin for GeneralConfig
impl UnsafeUnpin for GeneralConfig
impl UnwindSafe for GeneralConfig
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more