Files
delta-mirror/src/features/raw.rs
Dan Davison 6773d019f1 Don't set line-numbers in raw feature
This was preventing diff-highlight / diff-so-fancy composing
expectedly with other features.
2020-07-10 18:45:11 -04:00

85 lines
1.7 KiB
Rust

use crate::features::OptionValueFunction;
pub fn make_feature() -> Vec<(String, OptionValueFunction)> {
builtin_feature!([
(
"commit-decoration-style",
String,
None,
_opt => "none"
),
(
"commit-style",
String,
None,
_opt => "raw"
),
(
"file-decoration-style",
String,
None,
_opt => "none"
),
(
"file-style",
String,
None,
_opt => "raw"
),
(
"hunk-header-decoration-style",
String,
None,
_opt => "none"
),
(
"hunk-header-style",
String,
None,
_opt => "raw"
),
(
"minus-style",
String,
Some("color.diff.old"),
_opt => "red"
),
(
"minus-emph-style",
String,
Some("color.diff.old"),
_opt => "red"
),
(
"zero-style",
String,
None,
_opt => "normal"
),
(
"plus-style",
String,
Some("color.diff.new"),
_opt => "green"
),
(
"plus-emph-style",
String,
Some("color.diff.new"),
_opt => "green"
),
(
"keep-plus-minus-markers",
bool,
None,
_opt => true
),
(
"tabs",
usize,
None,
_opt => 0
)
])
}