zsh-workers
 help / color / mirror / code / Atom feed
* [PATCH] completion: git: send-email: complete (recent) commits
@ 2015-05-19  8:24 Daniel Hahler
  2015-05-19 16:01 ` Daniel Hahler
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel Hahler @ 2015-05-19  8:24 UTC (permalink / raw)
  To: zsh-workers

From: Daniel Hahler <git@thequod.de>

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-05-19 16:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-19  8:24 [PATCH] completion: git: send-email: complete (recent) commits Daniel Hahler
2015-05-19 16:01 ` Daniel Hahler

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).