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

[PATCH] completion: git: send-email: complete (recent) commits



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