Browse Source

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>
maint
Robin H. Johnson 18 years ago committed by Junio C Hamano
parent
commit
71c7da9421
  1. 4
      git-send-email.perl

4
git-send-email.perl

@ -488,9 +488,9 @@ X-Mailer: git-send-email $gitversion @@ -488,9 +488,9 @@ X-Mailer: git-send-email $gitversion
$smtp->ok or die "Failed to send $subject\n".$smtp->message;
}
if ($quiet) {
printf "Sent %s\n", $subject;
printf (($dry_run ? "Dry-" : "")."Sent %s\n", $subject);
} else {
print "OK. Log says:\nDate: $date\n";
print (($dry_run ? "Dry-" : "")."OK. Log says:\nDate: $date\n");
if ($smtp) {
print "Server: $smtp_server\n";
} else {

Loading…
Cancel
Save