Skip to content

Commit 33a2eea

Browse files
committed
Merge branch 'jc/send-email-sensible-encoding'
"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
2 parents 75b49bb + 852a15d commit 33a2eea

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

git-send-email.perl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -752,6 +752,7 @@ sub file_declares_8bit_cte {
752752
print " $f\n";
753753
}
754754
$auto_8bit_encoding = ask("Which 8bit encoding should I declare [UTF-8]? ",
755+
valid_re => qr/.{4}/, confirm_only => 1,
755756
default => "UTF-8");
756757
}
757758

0 commit comments

Comments
 (0)