Subject: Re: PATCH: update options for git completion
From: Daniel Hahler <[email-masked]>
To: [email-masked]
Date: Mon, 15 Aug 2016 12:05:39 +0200
List-Id: Zsh Workers List <zsh-workers.zsh.org>

On 13.08.2016 01:26, Oliver Kiddle wrote:
> This updates _git for new options up to git 2.9.2.

Awesome, thanks a lot!

I found two missing backslashes:

 Completion/Unix/Command/_git | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git i/Completion/Unix/Command/_git w/Completion/Unix/Command/_git
index 78f0564..ac4c90e 100644
--- i/Completion/Unix/Command/_git
+++ w/Completion/Unix/Command/_git
@@ -753,7 +753,7 @@ _git-diff () {
   _arguments -C -s \
     $* \
     $diff_options \
-    '(--exit-code)--quiet[disable all output]'
+    '(--exit-code)--quiet[disable all output]' \
     $diff_stage_options \
     '(--cached --staged)'{--cached,--staged}'[show diff between index and named commit]' \
     '(-)--[start file arguments]' \
@@ -849,7 +849,7 @@ _git-fetch () {
 
   _arguments -C -S -s \
     $fetch_options \
-    '(-n --no-tags -t --tags)'{-n,--no-tags}'[disable automatic tag following]'
+    '(-n --no-tags -t --tags)'{-n,--no-tags}'[disable automatic tag following]' \
     '(--all -m --multiple)'{-m,--multiple}'[fetch from multiple remotes]' \
     '*:: :->repository-or-group-or-refspec' && ret=0

Will commit it.