mirror of
https://github.com/dandavison/delta.git
synced 2024-10-05 04:17:21 +03:00
Set commit-style=raw in diff-highlight / diff-so-fancy mode (#623)
Ref #622
This commit is contained in:
parent
4034f4650a
commit
fb1d16ef44
@ -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,
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user