From 95eb0a0e589d6ee899a4a383aa2fb930462fc5cc Mon Sep 17 00:00:00 2001 From: Dan Davison Date: Sun, 19 Dec 2021 16:17:27 -0500 Subject: New option file-transformation to transform file paths --- src/cli.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/cli.rs') 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, + /// 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}/' -- cgit v1.2.3