on master help sign in
Add '-d' for '--diff'
commit989109145a39ee1ce65cfe2e17c502ce2e1a673c authorsharkdp <davidpeter@web.de> dateFri 24 Apr 2020, 16:06 (7 years ago) parent23afc8e
2 files changed+2−1
CHANGELOG.md+1−1 src/bin/bat/clap_app.rs+1
CHANGELOG.md+1−1
@@ -3,7 +3,7 @@
33
44## Features
55
6−- Add a new `--diff` option that can be used to only show lines surrounding
6+- Add a new `--diff`/`-d` option that can be used to only show lines surrounding
77 Git changes, i.e. added, removed or modified lines. The amount of additional
88 context can be controlled with `--diff-context=N`. See #23 and #940
99
src/bin/bat/clap_app.rs+1
@@ -108,6 +108,7 @@ pub fn build_app(interactive_output: bool) -> ClapApp<'static, 'static> {
108108 .arg(
109109 Arg::with_name("diff")
110110 .long("diff")
111+ .short("d")
111112 .help("Only show lines that have been added/removed/modified.")
112113 .long_help(
113114 "Only show lines that have been added/removed/modified with respect \