| 1 | use crate::features::OptionValueFunction; |
| 2 | |
| 3 | pub fn make_feature() -> Vec<(String, OptionValueFunction)> { |
| 4 | builtin_feature!([ |
| 5 | ( |
| 6 | "commit-decoration-style", |
| 7 | String, |
| 8 | None, |
| 9 | _opt => "none" |
| 10 | ), |
| 11 | ( |
| 12 | "commit-style", |
| 13 | String, |
| 14 | None, |
| 15 | _opt => "raw" |
| 16 | ), |
| 17 | ( |
| 18 | "file-decoration-style", |
| 19 | String, |
| 20 | None, |
| 21 | _opt => "none" |
| 22 | ), |
| 23 | ( |
| 24 | "file-style", |
| 25 | String, |
| 26 | None, |
| 27 | _opt => "raw" |
| 28 | ), |
| 29 | ( |
| 30 | "hunk-header-decoration-style", |
| 31 | String, |
| 32 | None, |
| 33 | _opt => "none" |
| 34 | ), |
| 35 | ( |
| 36 | "hunk-header-style", |
| 37 | String, |
| 38 | None, |
| 39 | _opt => "raw" |
| 40 | ), |
| 41 | ( |
| 42 | "minus-style", |
| 43 | String, |
| 44 | Some("color.diff.old"), |
| 45 | _opt => "red" |
| 46 | ), |
| 47 | ( |
| 48 | "minus-emph-style", |
| 49 | String, |
| 50 | Some("color.diff.old"), |
| 51 | _opt => "red" |
| 52 | ), |
| 53 | ( |
| 54 | "zero-style", |
| 55 | String, |
| 56 | None, |
| 57 | _opt => "normal" |
| 58 | ), |
| 59 | ( |
| 60 | "plus-style", |
| 61 | String, |
| 62 | Some("color.diff.new"), |
| 63 | _opt => "green" |
| 64 | ), |
| 65 | ( |
| 66 | "plus-emph-style", |
| 67 | String, |
| 68 | Some("color.diff.new"), |
| 69 | _opt => "green" |
| 70 | ), |
| 71 | ( |
| 72 | "keep-plus-minus-markers", |
| 73 | bool, |
| 74 | None, |
| 75 | _opt => true |
| 76 | ), |
| 77 | ( |
| 78 | "tabs", |
| 79 | usize, |
| 80 | None, |
| 81 | _opt => 0 |
| 82 | ) |
| 83 | ]) |
| 84 | } |