pub struct GeneralConfig {Show 20 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 status_cursor_on_changes: bool,
pub diff_renderer: DiffRendererConfig,
pub log_args: Vec<String>,
pub show_args: Vec<String>,
pub file_header: FileHeader,
pub start_folded: bool,
}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, as reading a patch line by line wants. Nothing can be staged there.
status_cursor_on_changes: boolWhether the status screen opens with the cursor on the first unstaged file, or the first staged one when nothing is unstaged.
diff_renderer: DiffRendererConfig§log_args: Vec<String>Arguments given to the git log gitu runs for the log view.
show_args: Vec<String>Arguments given to the git show gitu runs for a commit it opens.
file_header: FileHeader§start_folded: boolWhether a patch of more than one file that does not fit on one screen
starts with its files folded: git diff, git show, git log -p, and a
commit opened from the log.
Trait 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>,
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
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>
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>
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)
&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)
&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> ⓘ
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> ⓘ
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