From 88677dc92938fbbfe92ec676891f28b51de15485 Mon Sep 17 00:00:00 2001 From: Dan Davison Date: Sun, 14 Nov 2021 14:30:22 -0500 Subject: Sort config struct entries --- src/config.rs | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/config.rs b/src/config.rs index 56e9eec6..770a9eb6 100644 --- a/src/config.rs +++ b/src/config.rs @@ -57,9 +57,9 @@ fn adapt_wrap_max_lines_argument(arg: String) -> usize { pub struct Config { pub available_terminal_width: usize, pub background_color_extends_to_terminal_width: bool, - pub commit_style: Style, pub color_only: bool, pub commit_regex: Regex, + pub commit_style: Style, pub cwd_relative_to_repo_root: Option, pub decorations_width: cli::Width, pub default_language: Option, @@ -70,38 +70,40 @@ pub struct Config { pub file_modified_label: String, pub file_removed_label: String, pub file_renamed_label: String, - pub hunk_label: String, pub file_style: Style, - pub git_config: Option, pub git_config_entries: HashMap, + pub git_config: Option, + pub git_minus_style: Style, + pub git_plus_style: Style, pub hunk_header_file_style: Style, pub hunk_header_line_number_style: Style, - pub hunk_header_style: Style, pub hunk_header_style_include_file_path: bool, pub hunk_header_style_include_line_number: bool, - pub hyperlinks: bool, + pub hunk_header_style: Style, + pub hunk_label: String, pub hyperlinks_commit_link_format: Option, pub hyperlinks_file_link_format: String, + pub hyperlinks: bool, pub inline_hint_style: Style, pub inspect_raw_lines: cli::InspectRawLines, pub keep_plus_minus_markers: bool, + pub line_buffer_size: usize, pub line_fill_method: BgFillMethod, - pub line_numbers: bool, pub line_numbers_format: LeftRight, pub line_numbers_style_leftright: LeftRight