Set commit-style=raw in diff-highlight / diff-so-fancy mode (#623)

Ref #622
This commit is contained in:
Dan Davison 2021-06-02 16:23:29 -04:00 committed by GitHub
parent 4034f4650a
commit fb1d16ef44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View File

@ -12,6 +12,12 @@ pub fn _make_feature(bold: bool) -> Vec<(String, OptionValueFunction)> {
.filter(|(s, _)| s != "keep-plus-minus-markers" && s != "tabs")
.collect();
feature.extend(builtin_feature!([
(
"commit-style",
String,
Some("color.diff.commit"),
_opt => "raw"
),
(
"minus-style",
String,

View File

@ -16,12 +16,6 @@ pub fn make_feature() -> Vec<(String, OptionValueFunction)> {
Some("color.diff-highlight.newHighlight"),
_opt => "bold green 22"
),
(
"commit-style",
String,
Some("color.diff.commit"),
_opt => "bold yellow"
),
(
"file-style",
String,
@ -64,7 +58,7 @@ pub mod tests {
None,
);
assert_eq!(opt.commit_style, "bold yellow");
assert_eq!(opt.commit_style, "raw");
assert_eq!(opt.commit_decoration_style, "none");
assert_eq!(opt.file_style, "11");