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

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



-----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-----



Messages sorted by: Reverse Date, Date, Thread, Author