* [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
* Re: [PATCH] completion: git: send-email: complete (recent) commits
2015-05-19 8:24 [PATCH] completion: git: send-email: complete (recent) commits Daniel Hahler
@ 2015-05-19 16:01 ` Daniel Hahler
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Hahler @ 2015-05-19 16:01 UTC (permalink / raw)
To: zsh-workers
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 19.05.2015 10:24, Daniel Hahler wrote:
> - '*: :_files'
> + '*: : _alternative
> + "files:file:_files"
> + "commits:recent commit object name:__git_commit_objects_prefer_recent"'
I've fixed this to use the following, thanks to Mikael (and Daniel Shahaf for the
hint to use a space before "_alternative" in the original patch):
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index b31b694..fa79aff 100644
- --- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -3732,7 +3732,7 @@ _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]' \
- - '*: : _alternative
+ '*: : _alternative -O expl
"files:file:_files"
"commits:recent commit object name:__git_commit_objects_prefer_recent"'
}
Regards,
Daniel.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iD8DBQFVW15tfAK/hT/mPgARAn60AJ9tl6gBmNg35vrTuM71ZrtC4CgepACfY8Mm
lbOkBktAkKHmrTgej90XGiI=
=a11T
-----END PGP SIGNATURE-----
^ 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).