diff options
| author | Dan Davison <dandavison7@gmail.com> | 2021-12-19 16:17:27 -0500 |
|---|---|---|
| committer | Dan Davison <dandavison7@gmail.com> | 2022-01-06 12:20:17 -0500 |
| commit | 95eb0a0e589d6ee899a4a383aa2fb930462fc5cc (patch) | |
| tree | 975bbb3269d9af14e54e620ca0c0009c4fbdc0e1 /src/cli.rs | |
| parent | 808ca48eefa41facf9a30842cb500654208e2156 (diff) | |
New option file-transformation to transform file paths
Diffstat (limited to 'src/cli.rs')
| -rw-r--r-- | src/cli.rs | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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}/' |
