summaryrefslogtreecommitdiffstats
path: root/src/config.rs
diff options
context:
space:
mode:
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 75bc7488..72fd4710 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -70,6 +70,7 @@ pub struct Config {
pub color_only: bool,
pub commit_regex: Regex,
pub commit_style: Style,
+ pub cwd: Option<PathBuf>,
pub cwd_relative_to_repo_root: Option<String>,
pub decorations_width: cli::Width,
pub default_language: Option<String>,
@@ -254,6 +255,7 @@ impl From<cli::Opt> for Config {
commit_style: styles["commit-style"],
color_only: opt.color_only,
commit_regex,
+ cwd: std::env::current_dir().ok(),
cwd_relative_to_repo_root: std::env::var("GIT_PREFIX").ok(),
decorations_width: opt.computed.decorations_width,
default_language: opt.default_language,