mirror of
https://github.com/dandavison/delta.git
synced 2026-02-03 11:33:26 +01:00
This was preventing diff-highlight / diff-so-fancy composing expectedly with other features.
85 lines
1.7 KiB
Rust
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
|
|
)
|
|
])
|
|
}
|