summaryrefslogtreecommitdiff
path: root/src/cli.rs
diff options
context:
space:
mode:
authorDan Davison <dandavison7@gmail.com>2021-12-19 16:17:27 -0500
committerDan Davison <dandavison7@gmail.com>2022-01-06 12:20:17 -0500
commit95eb0a0e589d6ee899a4a383aa2fb930462fc5cc (patch)
tree975bbb3269d9af14e54e620ca0c0009c4fbdc0e1 /src/cli.rs
parent808ca48eefa41facf9a30842cb500654208e2156 (diff)
New option file-transformation to transform file paths
Diffstat (limited to 'src/cli.rs')
-rw-r--r--src/cli.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cli.rs b/src/cli.rs
index 569be55..ed16980 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -392,6 +392,10 @@ pub struct Opt {
/// (overline), or the combination 'ul ol'.
pub file_decoration_style: String,
+ #[structopt(long = "file-transformation")]
+ /// A sed-style command specifying how file paths should be transformed for display.
+ pub file_regex_replacement: Option<String>,
+
/// Format string for commit hyperlinks (requires --hyperlinks). The
/// placeholder "{commit}" will be replaced by the commit hash. For example:
/// --hyperlinks-commit-link-format='https://mygitrepo/{commit}/'