#[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: String

The Git comment character, from core.commentChar.

diff_context: u32

Number of context lines, from diff.context.

diff_interhunk_lines: u32

Number of interhunk lines, from diff.interhunk_lines.

diff_rename_limit: u32

The limit for detecting renames, from diff.renameLimit.

diff_renames: bool

If to detect renames, from diff.renames.

diff_copies: bool

If to detect copies, from diff.renames.

editor: String

The Git editor, from core.editor.

Implementations

Create a new configuration with default values.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.