Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH 3/4] _git: log: ignore numeric options
- X-seq: zsh-workers 38152
- From: m0viefreak <m0viefreak.cm@xxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH 3/4] _git: log: ignore numeric options
- Date: Sun, 13 Mar 2016 23:01:59 +0100
- Cc: m0viefreak <m0viefreak.cm@xxxxxxxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=buJ7jiv9jS189HHITtJiWCRI5KJ20UcpEPipDDdSC3U=; b=ecVrrSXVeA8syRl5TbgPiOXSPJB+iy2bIRyQQUOH2VFj5QaVRvZKvKD5H6W5O/dZBb 9eDKWbgwjkF6X0NopbNDUTWo+W1mH+rFDOkb5swwXybh3WL0u3hRkDV3tbFh5w0H0s5Y HnX6/WAuFiAyn5oSBx8riSJvcdmb25PcWUawCW0p8YyhbyOADvToY/xbH2y3qFobYhTQ 73imSG5N0hvDxfIf2b19hnTS9QeIXZH8MuCAK+aV4IW2QNSd6ITJ+gOCJ4nmJvCozDL/ 7kkfOhfWxVQ46aie/hYwS80LHaHrLl/dE3m7oMMHowfp5xUMbXeyUwXWxnjh5Dtuoibs 7P1g==
- In-reply-to: <1457906520-2612-1-git-send-email-m0viefreak.cm@googlemail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <1457906520-2612-1-git-send-email-m0viefreak.cm@googlemail.com>
git log allows -<number> arguments as a synonym for -n <number>,
This however broke completion of further option arguments.
Simply ignore all numeric options to make it work.
---
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 1241058..023740e 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -1087,7 +1087,7 @@ _git-log () {
__git_setup_log_options
__git_setup_revision_options
- _arguments -w -C -s \
+ _arguments -w -C -s -A "-[0-9]#" \
$log_options \
$revision_options \
'-L+[trace the evolution of a line range or regex within a file]:range' \
--
2.5.0.234.gefc8a62
Messages sorted by:
Reverse Date,
Date,
Thread,
Author