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

Re: [PATCH 4/4] git-send-email: Use git credential to obtain password.

From
Jeff King <peff@peff.net>
Date
Feb 6, 2013, 23:19 UTC
Message-ID
<20130206231943.GM27507@sigill.intra.peff.net>
In-Reply-To
<1d13f9fb587b8ea740cdd774173b8f63f45f86af.1360183427.git.mina86@mina86.com>
On Wed, Feb 06, 2013 at 09:47:06PM +0100, Michal Nazarewicz wrote:
Show 11 quoted lines
> From: Michal Nazarewicz <mina86@mina86.com>
> 
> If smtp_user is provided but smtp_pass is not, instead of prompting
> for password, make git-send-email use git credential command
> instead.
> 
> Signed-off-by: Michal Nazarewicz <mina86@mina86.com>
> ---
>  Documentation/git-send-email.txt |  4 +--
>  git-send-email.perl              | 59 +++++++++++++++++++++++-----------------
>  2 files changed, 36 insertions(+), 27 deletions(-)

Nice. I don't see anything obviously wrong with the code, but I didn't try it myself. I wonder how hard it would be to have some tests in t9001. It looks like we don't test the smtp code paths at all, since we would have to implement a fake smtp server. Which probably means the answer is is "pretty hard", unless there is an easy-to-use CPAN smtp server module we can plug in.

-Peff
Previous: Michal Nazarewicz
Message 11 of 11 in “Make git-send-email git-credential”
  1. 0/4 Make git-send-email git-credentialMichal Nazarewicz, Feb 6, 2013
  2. 1/4 Git.pm: Allow command_close_bidi_pipe() to be called as methodMichal Nazarewicz, Feb 6, 2013
  3. 2/4 Git.pm: Allow pipes to be closed prior to calling command_close_bidi_pipeMichal Nazarewicz, Feb 6, 2013
  4. Jeff KingFeb 6, 2013
  5. Junio C HamanoFeb 7, 2013
  6. 3/4 Git.pm: Add interface for git credential command.Michal Nazarewicz, Feb 6, 2013
  7. Jeff KingFeb 6, 2013
  8. Matthieu MoyFeb 7, 2013
  9. Matthieu MoyFeb 7, 2013
  10. 4/4 git-send-email: Use git credential to obtain password.Michal Nazarewicz, Feb 6, 2013
  11. Jeff KingFeb 6, 2013

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.