Prefix Dry- to the message status to denote dry-runs.
While doing testing, it's useful to see that a dry run was actually done, instead of a real one. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
238cc6352e
commit
71c7da9421
@ -488,9 +488,9 @@ X-Mailer: git-send-email $gitversion
|
|||||||
$smtp->ok or die "Failed to send $subject\n".$smtp->message;
|
$smtp->ok or die "Failed to send $subject\n".$smtp->message;
|
||||||
}
|
}
|
||||||
if ($quiet) {
|
if ($quiet) {
|
||||||
printf "Sent %s\n", $subject;
|
printf (($dry_run ? "Dry-" : "")."Sent %s\n", $subject);
|
||||||
} else {
|
} else {
|
||||||
print "OK. Log says:\nDate: $date\n";
|
print (($dry_run ? "Dry-" : "")."OK. Log says:\nDate: $date\n");
|
||||||
if ($smtp) {
|
if ($smtp) {
|
||||||
print "Server: $smtp_server\n";
|
print "Server: $smtp_server\n";
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user