git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stephen Boyd <bebarino@gmail.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: git@vger.kernel.org,
	Martin von Zweigbergk <martin.von.zweigbergk@gmail.com>
Subject: Re: [PATCH] send-email: validate & reconfirm interactive responses
Date: Wed, 5 Sep 2012 12:24:36 -0700	[thread overview]
Message-ID: <CALaEz9WVCj0gu-CbUJgydik1bC7z7JCcveKTdyxgrTWokXq5JA@mail.gmail.com> (raw)
In-Reply-To: <1344983132-22578-1-git-send-email-gitster@pobox.com>

On Tue, Aug 14, 2012 at 3:25 PM, Junio C Hamano <gitster@pobox.com> wrote:
> @@ -745,13 +752,15 @@ sub file_declares_8bit_cte {
>  if (!defined $sender) {
>         $sender = $repoauthor || $repocommitter || '';
>         $sender = ask("Who should the emails appear to be from? [$sender] ",
> -                     default => $sender);
> +                     default => $sender,
> +                     valid_re => qr/\@.*\./, confirm_only => 1);

This is now bugging me if I just hit enter and don't want to specify
anything for
these headers (I want the defaults or what's in the files already).
Can we allow
the empty string to be valid as well so I don't have to go through
these prompts?

  parent reply	other threads:[~2012-09-05 19:25 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-13 23:50 send-email and in-reply-to = n Stephen Boyd
2012-08-13 23:53 ` Junio C Hamano
2012-08-14 20:51   ` Martin von Zweigbergk
2012-08-14 22:25     ` [PATCH] send-email: validate & reconfirm interactive responses Junio C Hamano
2012-08-14 22:33       ` Martin von Zweigbergk
2012-08-14 22:57         ` Junio C Hamano
2012-09-05 19:24       ` Stephen Boyd [this message]
2012-09-06  3:29         ` Junio C Hamano
2012-09-06 18:31           ` Stephen Boyd
2012-09-06 20:03             ` Junio C Hamano
2012-09-06 21:21               ` [PATCH] send-email: initial_to and initial_reply_to are both optional Junio C Hamano
2012-09-06 21:49                 ` Stephen Boyd
2012-09-06 21:47               ` [PATCH] send-email: validate & reconfirm interactive responses Stephen Boyd

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CALaEz9WVCj0gu-CbUJgydik1bC7z7JCcveKTdyxgrTWokXq5JA@mail.gmail.com \
    --to=bebarino@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=martin.von.zweigbergk@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).