diff options
author | Dan Davison <dandavison7@gmail.com> | 2020-06-28 14:44:48 -0400 |
---|---|---|
committer | Dan Davison <dandavison7@gmail.com> | 2020-06-28 15:17:49 -0400 |
commit | 1e19d8da46576d968446b0dccb991b9ab01edc69 (patch) | |
tree | b351c3153b8ea3939585ae92876dea044329a965 | |
parent | 07a1faca2bb5f57119e114f8223cab1f044f1949 (diff) |
Make diff-so-fancy honor color.diff.commit
-rw-r--r-- | src/features/diff_so_fancy.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/features/diff_so_fancy.rs b/src/features/diff_so_fancy.rs index 5132829c..d05d2e68 100644 --- a/src/features/diff_so_fancy.rs +++ b/src/features/diff_so_fancy.rs @@ -19,7 +19,7 @@ pub fn make_feature() -> Vec<(String, OptionValueFunction)> { ( "commit-style", String, - None, + Some("color.diff.commit"), _opt => "bold yellow" ), ( @@ -76,7 +76,7 @@ pub mod tests { [color \"diff\"] meta = 11 frag = magenta bold - commit = yellow bold + commit = purple bold old = red bold new = green bold whitespace = red reverse @@ -89,7 +89,7 @@ pub mod tests { Some(git_config_path), ); - assert_eq!(opt.commit_style, "bold yellow"); + assert_eq!(opt.commit_style, "purple bold"); assert_eq!(opt.file_style, "11"); assert_eq!(opt.hunk_header_style, "magenta bold"); assert_eq!(opt.commit_decoration_style, "none"); |