summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Kiddle <okiddle@yahoo.co.uk>2018-04-16 16:53:47 +0200
committerOliver Kiddle <okiddle@yahoo.co.uk>2018-04-16 16:53:47 +0200
commitb69a3416192f47b1ebc4f93df5e507d4cb1f3894 (patch)
tree03c4081dd1ceb0842cf230960c80209df6eb4822
parent2cf01b9da8d0192ae1ce1d8ae9bf667da0fddeec (diff)
downloadzsh-b69a3416192f47b1ebc4f93df5e507d4cb1f3894.tar.gz
zsh-b69a3416192f47b1ebc4f93df5e507d4cb1f3894.zip
42658: allow compact form of option arguments to diffstat
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Unix/Command/_diffstat20
2 files changed, 13 insertions, 10 deletions
diff --git a/ChangeLog b/ChangeLog
index 361a60830..81a100e21 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2018-04-16 Oliver Kiddle <okiddle@yahoo.co.uk>
+ * 42658: Completion/Unix/Command/_diffstat: allow compact form of
+ option arguments to diffstat
+
* Matthew Martin: 42643, 42644: Completion/BSD/Command/_cksum:
new cksum completion
diff --git a/Completion/Unix/Command/_diffstat b/Completion/Unix/Command/_diffstat
index c9f8e3049..9e7bf779b 100644
--- a/Completion/Unix/Command/_diffstat
+++ b/Completion/Unix/Command/_diffstat
@@ -5,28 +5,28 @@ _arguments -s -S \
'-c[prefix each line with hash mark]' \
'-C[use color highlighting of histogram]' \
'-d[print debug information]' \
- '-D[specify location of patched files for unchanged count]:location:_directories' \
- '-e[redirect standard error to specified file]:error file:_files' \
+ '-D+[specify location of patched files for unchanged count]:location:_directories' \
+ '-e+[redirect standard error to specified file]:error file:_files' \
'-E[trim escape sequences, e.g. from colordiff]' \
- '-f[specify histogram format]:format:((0\:concise 1\:normal 2\:dots 3\:dots+normal 4\:value 5\:value+normal 6\:value+dots 7\:value+dots+normal))' \
+ '-f+[specify histogram format]:format:((0\:concise 1\:normal 2\:dots 3\:dots+normal 4\:value 5\:value+normal 6\:value+dots 7\:value+dots+normal))' \
'(- *)-h[display help information]' \
'-k[suppress merging of filenames in report]' \
'-K[resolve ambiguity of "only" filenames]' \
'-l[list only the filenames]' \
'-m[merge insert/delete data in chunks as modified-lines]' \
- '-n[specify minimum width for filenames]:width [auto]' \
- '-N[specify maximum width for filenames]:width [auto]' \
- '-o[redirect standard output to specified file]:output file:_files' \
- '-p[specify number of path separators to strip]:path components [common]' \
+ '-n+[specify minimum width for filenames]:width [auto]' \
+ '-N+[specify maximum width for filenames]:width [auto]' \
+ '-o+[redirect standard output to specified file]:output file:_files' \
+ '-p+[specify number of path separators to strip]:path components [common]' \
'-q[suppress "0 files changed" message for empty diffs]' \
- '-r[specify rounding for histogram]:rounding:((0\:none 1\:simple 2\:simple+adjustment))' \
+ '-r+[specify rounding for histogram]:rounding:((0\:none 1\:simple 2\:simple+adjustment))' \
'(-t)-s[show only the summary line]' \
- '-S[specify location of original files for unchanged count]:location:_directories' \
+ '-S+[specify location of original files for unchanged count]:location:_directories' \
'-R[assume patch was created with old and new files swapped]' \
'(-T -s)-t[overrides histogram, generates csv output]' \
'(-t)-T[print amounts (like -t) in addition to histogram]' \
'-u[suppress sorting of filenames in report]' \
'-v[show progress]' \
'(- *)-V[print version number]' \
- '-w[specify maximumn width of output]:maximum width [80]' \
+ '-w+[specify maximumn width of output]:maximum width [80]' \
'*:patch file:_files'