diff options
author | Dan Davison <dandavison7@gmail.com> | 2021-06-02 16:23:29 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-02 16:23:29 -0400 |
commit | fb1d16ef44600c3cef496cb9e9c6ad61381f6192 (patch) | |
tree | af3c06c0a8bdf18fd72603d6d899c8103845d133 /src | |
parent | 4034f4650a64c27c8c0582803c83b4e69a68dc0d (diff) |
Set commit-style=raw in diff-highlight / diff-so-fancy mode (#623)
Ref #622
Diffstat (limited to 'src')
-rw-r--r-- | src/features/diff_highlight.rs | 6 | ||||
-rw-r--r-- | src/features/diff_so_fancy.rs | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/features/diff_highlight.rs b/src/features/diff_highlight.rs index 0f4d5de3..630099e1 100644 --- a/src/features/diff_highlight.rs +++ b/src/features/diff_highlight.rs @@ -13,6 +13,12 @@ pub fn _make_feature(bold: bool) -> Vec<(String, OptionValueFunction)> { .collect(); feature.extend(builtin_feature!([ ( + "commit-style", + String, + Some("color.diff.commit"), + _opt => "raw" + ), + ( "minus-style", String, Some("color.diff.old"), diff --git a/src/features/diff_so_fancy.rs b/src/features/diff_so_fancy.rs index 3898dac1..d9849a07 100644 --- a/src/features/diff_so_fancy.rs +++ b/src/features/diff_so_fancy.rs @@ -17,12 +17,6 @@ pub fn make_feature() -> Vec<(String, OptionValueFunction)> { _opt => "bold green 22" ), ( - "commit-style", - String, - Some("color.diff.commit"), - _opt => "bold yellow" - ), - ( "file-style", String, Some("color.diff.meta"), @@ -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"); |