summary refs log tree commit diff
path: root/Completion/Unix
diff options
context:
space:
mode:
authorØystein Walle <oystwa@gmail.com>2013-10-20 19:43:33 +0200
committerFrank Terbeck <ft@bewatermyfriend.org>2013-10-21 17:40:12 +0200
commit3d77fa789d80d361d07ede1c2588500742fc2860 (patch)
tree687f872cf9291ac76b0953d4c5bb910ae3be3b26 /Completion/Unix
parent32ffba1214dcc18c4fb39dbad82ed0c6bb3ba41e (diff)
downloadzsh-3d77fa789d80d361d07ede1c2588500742fc2860.tar.gz
zsh-3d77fa789d80d361d07ede1c2588500742fc2860.tar.xz
zsh-3d77fa789d80d361d07ede1c2588500742fc2860.zip
31864: _git: Add two sub-comamnds introduced in v1.8.4
Add _git-check-ignore() and _git-check-mailmap()
Diffstat (limited to 'Completion/Unix')
-rw-r--r--Completion/Unix/Command/_git19
1 files changed, 19 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index 36e97071e..0f41acb32 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -399,6 +399,23 @@ _git-bundle () {
   return ret
 }
 
+(( $+functions[_git-check-ignore] )) ||
+_git-check-ignore () {
+  _arguments \
+    '(-q --quiet)'{-q,--quiet}'[do not output anything, just set exit status]' \
+    '(-v --verbose)'{-v,--verbose}'[output details about the matching pattern (if any) for each pathname]' \
+    '--stdin[read file names from stdin instead of from the command-line]' \
+    '-z[make output format machine-parseable]' \
+    '(-n --non-matching)'{-n,--non-matching}'[show given paths which do not match any pattern]' \
+    '*:: :->file' && ret=0
+}
+
+(( $+functions[_git-check-mailmap] )) ||
+_git-check-mailmap () {
+  _arguments \
+    '--stdin[read contacts from stdin after those given on the command line]'
+}
+
 (( $+functions[_git-checkout] )) ||
 _git-checkout () {
   # TODO: __git_tree_ishs is just stupid.  It should be giving us a list of tags
@@ -5008,6 +5025,8 @@ _git_commands () {
   local -a plumbing_internal_helper_commands
   plumbing_internal_helper_commands=(
     check-attr:'display gitattributes information'
+    check-ignore:'debug gitignore/exclude files'
+    check-mailmap:'show canonical names and email addresses of contacts'
     check-ref-format:'ensure that a reference name is well formed'
     fmt-merge-msg:'produce merge commit message'
     mailinfo:'extract patch and authorship from a single email message'