Skip to content

Commit

Permalink
Merge branch 'jc/send-email-sensible-encoding'
Browse files Browse the repository at this point in the history
"git send-email" used to accept a mistaken "y" (or "yes") as an
answer to "What encoding do you want to use [UTF-8]? " without
questioning.  Now it asks for confirmation when the answer looks
too short to be a valid encoding name.

* jc/send-email-sensible-encoding:
  send-email: ask confirmation if given encoding name is very short
  • Loading branch information
Junio C Hamano committed Feb 25, 2015
2 parents 75b49bb + 852a15d commit 33a2eea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions git-send-email.perl
Original file line number Diff line number Diff line change
Expand Up @@ -752,6 +752,7 @@ sub file_declares_8bit_cte {
print " $f\n";
}
$auto_8bit_encoding = ask("Which 8bit encoding should I declare [UTF-8]? ",
valid_re => qr/.{4}/, confirm_only => 1,
default => "UTF-8");
}

Expand Down

0 comments on commit 33a2eea

Please sign in to comment.