summaryrefslogtreecommitdiffstats
path: root/src/config.rs
diff options
context:
space:
mode:
authorDan Davison <dandavison7@gmail.com>2021-04-24 08:43:29 -0400
committerDan Davison <dandavison7@gmail.com>2021-04-24 16:43:24 -0400
commitdc8a6fc3d48c16f82402d46cd83106cf94ed83fe (patch)
treecf7e9e2198604801c76a2fcb91579fdda1c13ed2 /src/config.rs
parent2cc9b5d296f902704ab19eed308b3c145f9a89e6 (diff)
Add relative-paths option
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs
index 6d949dff..fbad2e41 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -72,6 +72,7 @@ pub struct Config {
pub plus_style: Style,
pub git_minus_style: Style,
pub git_plus_style: Style,
+ pub relative_paths: bool,
pub show_themes: bool,
pub side_by_side: bool,
pub side_by_side_data: side_by_side::SideBySideData,
@@ -239,6 +240,7 @@ impl From<cli::Opt> for Config {
plus_style,
git_minus_style,
git_plus_style,
+ relative_paths: opt.relative_paths,
show_themes: opt.show_themes,
side_by_side: opt.side_by_side,
side_by_side_data,