about summary refs log tree commit diff
path: root/Completion/Unix/Command
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2016-01-18 02:37:23 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2016-01-20 07:49:30 +0000
commit3eb4d9c2e262ec9c86e0bfda79c074e9e3115476 (patch)
tree12bdc919b2eb3eb149ea644e8634d30b1c1a0c1b /Completion/Unix/Command
parentc6fc6f80cd960af914400eb3f49c52fc17598ba5 (diff)
downloadzsh-3eb4d9c2e262ec9c86e0bfda79c074e9e3115476.tar.gz
zsh-3eb4d9c2e262ec9c86e0bfda79c074e9e3115476.tar.xz
zsh-3eb4d9c2e262ec9c86e0bfda79c074e9e3115476.zip
37666: Completion: git: 'send-email --smtp-server=' takes absolute path to sendmail.
Diffstat (limited to 'Completion/Unix/Command')
-rw-r--r--Completion/Unix/Command/_git7
1 files changed, 6 insertions, 1 deletions
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index ce3521972..5f137d009 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -3710,7 +3710,7 @@ _git-send-email () {
     '--smtp-encryption=[specify encryption method to use]: :__git_sendemail_smtpencryption_values' \
     '--smtp-domain=[specify FQDN used in HELO/EHLO]: :_domains' \
     '--smtp-pass=[specify password to use for SMTP-AUTH]::password' \
-    '--smtp-server=[specify SMTP server to connect to]:smtp server:_hosts' \
+    '--smtp-server=[specify SMTP server to connect to, or sendmail command]: : __git_sendmail_smtpserver_values' \
     '--smtp-server-port=[specify port to connect to SMTP server on]:smtp port:_ports' \
     '--smtp-server-option=[specify the outgoing SMTP server option to use]:SMPT server option' \
     '--smtp-ssl-cert-path=[path to ca-certificates (directory or file)]:ca certificates path:_files' \
@@ -6859,6 +6859,11 @@ __git_sendemail_suppresscc_values () {
     all:'avoid all auto Cc values'
 }
 
+(( $+functions[__git_sendmail_smtpserver_values] )) ||
+__git_sendmail_smtpserver_values() {
+  _alternative "smtp hosts:host:_hosts" "sendmail command: :_absolute_command_paths"
+}
+
 (( $+functions[__git_colors] )) ||
 __git_colors () {
   declare -a expl