Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] __git_commit_objects_prefer_recent: local ret
- X-seq: zsh-workers 35261
- From: Daniel Hahler <genml+zsh-workers@xxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH] __git_commit_objects_prefer_recent: local ret
- Date: Fri, 22 May 2015 01:04:13 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thequod.de; h= references:in-reply-to:x-mailer:message-id:date:date:subject :subject:from:from:received:received:received; s=postfix2; t= 1432249465; bh=3VLE6XfEMytGdsDIN+6lctyjFTKw/G3uAEqp3ooclvY=; b=X oSeuRFDPbyYUgd881IfreA/ywT1X/Co9qcpE7BqV53rIRIPFtJZz0l6l4Th19NOT AkuX21lQa+SzH4Si32YbxyJE6DMjsCxwBB+nik5Bf8IxTbPGPUuZYk0/mZzbigGC V4NXNzZUB86z0kigQuuI/9YoGcuBAXzpOarxgGyc/s=
- In-reply-to: <150521140712.ZM27958@torch.brasslantern.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: <150521140712.ZM27958@torch.brasslantern.com>
From: Daniel Hahler <git@xxxxxxxxxx>
Without this, `ret` will be set to 1 with `git diff --ex<tab>` and
result in duplicate entries:
% git diff --ex<tab>
-- option --
--exit-code -- report exit code 1 if differences, 0 otherwise
--exit-code -- report exit code 1 if differences, 0 otherwise
--ext-diff -- allow external diff helper to be executed
--ext-diff -- allow external diff helper to be executed
--no-ext-diff -- disallow external diff helper to be executed
-- recent commit object name --
I am not sure if this is the right way to do it.
---
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 c886cc9..4403a48 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -5674,7 +5674,7 @@ __git_commit_objects () {
__git_recent_commits () {
local gitdir expl start
declare -a descr tags heads commits
- local i j k
+ local i j k ret
integer distance_from_head
# Careful: most %d will expand to the empty string. Quote properly!
--
2.4.0.dirty
Messages sorted by:
Reverse Date,
Date,
Thread,
Author