summaryrefslogtreecommitdiffstats
path: root/src/cli.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/cli.rs')
-rw-r--r--src/cli.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/cli.rs b/src/cli.rs
index ca465454..d097a878 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -231,6 +231,11 @@ pub struct Opt {
/// --file-renamed-label.
pub navigate: bool,
+ #[structopt(long = "relative-paths")]
+ /// Output all file paths relative to the current directory so that they
+ /// resolve correctly when clicked on or used in shell commands.
+ pub relative_paths: bool,
+
#[structopt(long = "hyperlinks")]
/// Render commit hashes, file names, and line numbers as hyperlinks, according to the
/// hyperlink spec for terminal emulators:
@@ -482,6 +487,11 @@ pub struct Opt {
#[structopt(short = "w", long = "width")]
pub width: Option<String>,
+ /// Width allocated for file paths in a diff stat section. If a relativized
+ /// file path exceeds this width then the diff stat will be misaligned.
+ #[structopt(long = "diff-stat-align-width", default_value = "48")]
+ pub diff_stat_align_width: usize,
+
/// The number of spaces to replace tab characters with. Use --tabs=0 to pass tab characters
/// through directly, but note that in that case delta will calculate line widths assuming tabs
/// occupy one character's width on the screen: if your terminal renders tabs as more than than