summaryrefslogtreecommitdiffstats
path: root/src/cli.rs
diff options
context:
space:
mode:
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 569be55f..ed169809 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}/'