Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[PATCH] _git: fix typo in _git-grep



This patch fixes the issue below:

----
% git grep <Tab>
_arguments:comparguments:312: invalid argument: (--textconv --no-textconv}--no-textconv[do not honor textconv filter settings]
----

Signed-off-by: Takeshi Banse <takebi@xxxxxxxxx>
---
 Completion/Unix/Command/_git | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index b082bb0..4982f30 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -925,7 +925,7 @@ _git-grep () {
     '--untracked[search in untracked files]' \
     '(-a --text)'{-a,--text}'[process binary files as if they were text]' \
     '(--textconv --no-textconv)--textconv[honor textconv filter settings]' \
-    '(--textconv --no-textconv}--no-textconv[do not honor textconv filter settings]' \
+    '(--textconv --no-textconv)--no-textconv[do not honor textconv filter settings]' \
     '(-i --ignore-case)'{-i,--ignore-case}'[ignore case when matching]' \
     '-I[do not match pattern in binary files]' \
     '--max-depth=[descend at most given levels of directories]: :__git_guard_number depth' \
-- 
1.9.1



Messages sorted by: Reverse Date, Date, Thread, Author