#[non_exhaustive]pub struct GitConfig {
pub comment_char: String,
pub diff_context: u32,
pub diff_interhunk_lines: u32,
pub diff_rename_limit: u32,
pub diff_renames: bool,
pub diff_copies: bool,
pub editor: String,
}Expand description
Represents the git configuration options.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.comment_char: StringThe Git comment character, from core.commentChar.
diff_context: u32Number of context lines, from diff.context.
diff_interhunk_lines: u32Number of interhunk lines, from diff.interhunk_lines.
diff_rename_limit: u32The limit for detecting renames, from diff.renameLimit.
diff_renames: boolIf to detect renames, from diff.renames.
diff_copies: boolIf to detect copies, from diff.renames.
editor: StringThe Git editor, from core.editor.
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for GitConfig
impl Send for GitConfig
impl Sync for GitConfig
impl Unpin for GitConfig
impl UnwindSafe for GitConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more