diff options
author | Dan Davison <dandavison7@gmail.com> | 2021-08-28 20:17:00 -0400 |
---|---|---|
committer | Dan Davison <dandavison7@gmail.com> | 2021-08-28 21:36:57 -0400 |
commit | 0b8f14503c5bd124554e6fb02f41a30e410a61cd (patch) | |
tree | c3cddce9438da5ccf54d66a29dc000fea95234cf /src/config.rs | |
parent | 2f0f3ebeef6f4c3d641a28c09fade811541768de (diff) |
Add default-language option
Diffstat (limited to 'src/config.rs')
-rw-r--r-- | src/config.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs index 9b1c23ce..d45c2124 100644 --- a/src/config.rs +++ b/src/config.rs @@ -26,6 +26,7 @@ pub struct Config { pub commit_regex: Regex, pub cwd_relative_to_repo_root: Option<String>, pub decorations_width: cli::Width, + pub default_language: Option<String>, pub diff_stat_align_width: usize, pub error_exit_code: i32, pub file_added_label: String, @@ -206,6 +207,7 @@ impl From<cli::Opt> for Config { commit_regex, cwd_relative_to_repo_root: std::env::var("GIT_PREFIX").ok(), decorations_width: opt.computed.decorations_width, + default_language: opt.default_language, diff_stat_align_width: opt.diff_stat_align_width, error_exit_code: 2, // Use 2 for error because diff uses 0 and 1 for non-error. file_added_label, |