Struct config::GitConfig[][src]

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

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.

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

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

Performs the conversion.

Performs the conversion.

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)

recently added

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.