summaryrefslogtreecommitdiffstats
path: root/src/cli.rs
diff options
context:
space:
mode:
authorDan Davison <dandavison7@gmail.com>2020-07-11 12:09:18 -0400
committerGitHub <noreply@github.com>2020-07-11 12:09:18 -0400
commit4c8f5f5835956e9f5b852b9adbf0a5ffbea1e9be (patch)
treefa20d7e780cb67cd67976524f0404b6e73983a6f /src/cli.rs
parentca44215ac6bff9ca1ac2497247ac2286e630bde5 (diff)
Add side-by-side diff view (#243)
Closes #86
Diffstat (limited to 'src/cli.rs')
-rw-r--r--src/cli.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cli.rs b/src/cli.rs
index fbbcd6f5..60c69e37 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -212,6 +212,10 @@ pub struct Opt {
#[structopt(short = "n", long = "line-numbers")]
pub line_numbers: bool,
+ /// Display a side-by-side diff view instead of the traditional view.
+ #[structopt(short = "s", long = "side-by-side")]
+ pub side_by_side: bool,
+
#[structopt(long = "diff-highlight")]
/// Emulate diff-highlight (https://github.com/git/git/tree/master/contrib/diff-highlight)
pub diff_highlight: bool,
@@ -516,6 +520,7 @@ pub struct ComputedValues {
pub syntax_theme: Option<SyntaxTheme>,
pub syntax_dummy_theme: SyntaxTheme,
pub true_color: bool,
+ pub available_terminal_width: usize,
pub decorations_width: Width,
pub background_color_extends_to_terminal_width: bool,
pub paging_mode: PagingMode,