summaryrefslogtreecommitdiffstats
path: root/src/config.rs
diff options
context:
space:
mode:
authorWayne Davison <wayne@opencoder.net>2021-11-16 19:06:56 -0800
committerDan Davison <dandavison7@gmail.com>2021-11-17 13:42:20 -0500
commit90fd9c60493cc6f653e76277d67e1fce611bbb1d (patch)
treedef0ffeec54e134e14490a893cc91bcb9a255cf9 /src/config.rs
parentd4e3c288ae8bdfe2bf93c9c23c88860a3987973c (diff)
Add the --right-arrow option.
This allows the file1 -> file2 arrow to be configured to whatever characters the user desires. The default is the same unicode arrow as before with 2 spaces after it, since this allows someone to remove the extra spaces that are in the current output.
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs
index 81424211..4ed7f27a 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -73,6 +73,7 @@ pub struct Config {
pub file_modified_label: String,
pub file_removed_label: String,
pub file_renamed_label: String,
+ pub right_arrow: String,
pub file_style: Style,
pub git_config_entries: HashMap<String, GitConfigEntry>,
pub git_config: Option<GitConfig>,
@@ -223,6 +224,7 @@ impl From<cli::Opt> for Config {
let file_modified_label = opt.file_modified_label;
let file_removed_label = opt.file_removed_label;
let file_renamed_label = opt.file_renamed_label;
+ let right_arrow = opt.right_arrow;
let hunk_label = opt.hunk_label;
let line_fill_method = match opt.line_fill_method.as_deref() {
@@ -278,6 +280,7 @@ impl From<cli::Opt> for Config {
file_modified_label,
file_removed_label,
file_renamed_label,
+ right_arrow,
hunk_label,
file_style,
git_config: opt.git_config,