zsh-workers
 help / color / mirror / code / Atom feed
From: "Øystein Walle" <oystwa@gmail.com>
To: zsh-workers@zsh.org
Cc: "Øystein Walle" <oystwa@gmail.com>
Subject: [PATCH 5/6] _git: Add two sub-comamnds introduced in v1.8.4
Date: Sun, 20 Oct 2013 19:43:33 +0200	[thread overview]
Message-ID: <bbfdf0955afa5e4a1736ab4a0000d593cd998a6f.1382290234.git.oystwa@gmail.com> (raw)
In-Reply-To: <cover.1382290234.git.oystwa@gmail.com>
In-Reply-To: <cover.1382290234.git.oystwa@gmail.com>

Add _git-check-ignore() and _git-check-mailmap()
---
 Completion/Unix/Command/_git | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index 36e9707..0f41acb 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'
-- 
1.8.4.1.516.g1d25dd4


  parent reply	other threads:[~2013-10-20 17:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-20 17:43 [PATCH 0/6] Completion updates for Git 1.8.4.1 Øystein Walle
2013-10-20 17:43 ` [PATCH 1/6] _git: Add git-clean -i/--interactive support Øystein Walle
2013-10-20 17:43 ` [PATCH 2/6] _git: Add new arguments introduced in Git v1.8.4 Øystein Walle
2013-10-20 17:43 ` [PATCH 3/6] _git: Add status.short and status.branch Øystein Walle
2013-10-20 17:43 ` [PATCH 4/6] _git: Reword --heads to match new meaning Øystein Walle
2013-10-20 17:43 ` Øystein Walle [this message]
2013-10-20 17:43 ` [PATCH 6/6] _git: Make --batch(-check) accept an argument Øystein Walle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bbfdf0955afa5e4a1736ab4a0000d593cd998a6f.1382290234.git.oystwa@gmail.com \
    --to=oystwa@gmail.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).