Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] completion: git: send-email: complete (recent) commits
- X-seq: zsh-workers 35217
- From: Daniel Hahler <genml+zsh-workers@xxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH] completion: git: send-email: complete (recent) commits
- Date: Tue, 19 May 2015 10:24:49 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thequod.de; h= x-mailer:message-id:date:date:subject:subject:from:from:received :received:received; s=postfix2; t=1432023899; bh=48qxCBbaATpXJh8 YNKX0kfgnEOSmutzYj1ycjMr4FBM=; b=NhB7CrjuZkK9JY2BptfGgjUN1DO8sLc xSc7huLLGdcSRIFe0FFIIYjecsZWB1Z/GsKclTFHr79YaqhUGyFGhX990BpEM1H3 Yr9Q1nItcOU1rNRclMvujXPZaC5g0NZLCqOHnkQiOVkybSU6OyvDMWPnRQog1J+c Vy1Ssd+fJdRs=
- 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
From: Daniel Hahler <git@xxxxxxxxxx>
This adds `__git_commit_objects_prefer_recent` as alternative for
git-send-email's completion.
---
Completion/Unix/Command/_git | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index fb9cae1..b31b694 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -3732,7 +3732,9 @@ _git-send-email () {
'( --no-validate)--validate[perform sanity checks on patches]' \
'(--validate )--no-validate[do not perform sanity checks on patches]' \
'--force[send emails even if safety checks would prevent it]' \
- '*: :_files'
+ '*: : _alternative
+ "files:file:_files"
+ "commits:recent commit object name:__git_commit_objects_prefer_recent"'
}
(( $+functions[_git-svn] )) ||
--
2.4.0.dirty
Messages sorted by:
Reverse Date,
Date,
Thread,
Author