git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] send-email: Defines smtpPassCmd config option

From
Carlo Marcelo Arenas Belón <carenas@gmail.com>
Date
May 1, 2020, 12:53 UTC
Message-ID
<20200501125308.GE33264@Carlos-MBP>
In-Reply-To
<20200501105131.297457-1-leobras.c@gmail.com>
On Fri, May 01, 2020 at 07:51:31AM -0300, Leonardo Bras wrote:
Show 13 quoted lines
> diff --git a/Documentation/git-send-email.txt b/Documentation/git-send-email.txt
> index 0a69810147..8e9da5ed64 100644
> --- a/Documentation/git-send-email.txt
> +++ b/Documentation/git-send-email.txt
> @@ -203,8 +203,9 @@ independently of `--smtp-user`
>  Furthermore, passwords need not be specified in configuration files
>  or on the command line. If a username has been specified (with
>  `--smtp-user` or a `sendemail.smtpUser`), but no password has been
> -specified (with `--smtp-pass` or `sendemail.smtpPass`), then
> -a password is obtained using 'git-credential'.
> +specified (with `--smtp-pass` or `sendemail.smtpPass`, or as an output
> +of `sendemail.smtpPassCmd`), then a password is obtained using
> +'git-credential'.
this last part on git credential is just undocumented, since it is already
doing so since 4d31a44a08 (git-send-email: use git credential to obtain
password, 2013-02-12)
 
and of course, assuming you use a credential helper that keeps the password
encrypted you could use that instead of this new feature.

having said that, this looks like a good alternative, but might need to make sure if die makes sense below or would be better to see if you can still get a password through git credential even if that fails.

maybe the rule of what to do might even need some configuration itself.
Carlo
Previous: Leonardo BrasNext: Junio C Hamano
Message 2 of 13 in “send-email: Defines smtpPassCmd config option”
  1. send-email: Defines smtpPassCmd config optionLeonardo Bras, May 1, 2020
  2. Carlo Marcelo Arenas BelónMay 1, 2020
  3. Junio C HamanoMay 1, 2020
  4. Taylor BlauMay 1, 2020
  5. brian m. carlsonMay 1, 2020
  6. Jeff KingMay 3, 2020
  7. brian m. carlsonMay 3, 2020
  8. Carlo Marcelo Arenas BelónMay 3, 2020
  9. Leonardo BrasMay 4, 2020
  10. Jeff KingMay 4, 2020
  11. Leonardo BrasMay 4, 2020
  12. Leonardo BrasMay 4, 2020
  13. Leonardo BrasMay 4, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.