about summary refs log tree commit diff
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2006-02-22 02:56:03 +0000
committerClint Adams <clint@users.sourceforge.net>2006-02-22 02:56:03 +0000
commit262243bb3e88ed582ef9edd57ea1782d00a3d07a (patch)
tree4ebea5658a2b9bf2493d372228674464456bd474
parent21f98967bf7e41298ccc2935230c0dcaf092194d (diff)
downloadzsh-262243bb3e88ed582ef9edd57ea1782d00a3d07a.tar.gz
zsh-262243bb3e88ed582ef9edd57ea1782d00a3d07a.tar.xz
zsh-262243bb3e88ed582ef9edd57ea1782d00a3d07a.zip
22298: completion for diffstat
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Command/_diffstat19
2 files changed, 24 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 9024bebda..bd9f531f8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-02-21  Clint Adams  <clint@zsh.org>
+
+	* 22298: Completion/Unix/Command/_diffstat: completion
+	for diffstat.
+
 2006-02-20  Clint Adams  <clint@zsh.org>
 
 	* unposted: update config.guess and config.sub to
diff --git a/Completion/Unix/Command/_diffstat b/Completion/Unix/Command/_diffstat
new file mode 100644
index 000000000..9b4b2da6e
--- /dev/null
+++ b/Completion/Unix/Command/_diffstat
@@ -0,0 +1,19 @@
+#compdef diffstat
+
+_arguments \
+  '-c[prefix each line with hash mark]' \
+  '-e:error file:_files' \
+  '-f:histogram format:((0\:concise 1\:normal 2\:dots 3\:dots+normal 4\:value 5\:value+normal 6\:value+dots 7\:value+dots+normal))' \
+  '-h[help]' \
+  '-k[suppress merging of filenames in report]' \
+  '-l[list only the filenames]' \
+  '-n:minimum width for filenames:' \
+  '-o:output file:_files' \
+  '-p:number of path components:' \
+  '-f:rounding code:((0\:none 1\:round 2\:round+adjustment))' \
+  '-t[overrides histogram, generates csv output]' \
+  '-u[suppress sorting of filenames in report]' \
+  '-v[show progress]' \
+  '-V[print version number]' \
+  '-w:maximum width of histogram:' \
+  '*:file specifications:_files'