From: Robin H. Johnson Date: Thu, 26 Apr 2007 02:37:16 +0000 (-0700) Subject: Prefix Dry- to the message status to denote dry-runs. X-Git-Tag: v1.5.1.3~33 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=71c7da94218fbe36e64a326825ff30ef811b2a88;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/git-send-email.perl b/git-send-email.perl index 5e38a97cb..50d45fe00 100755 --- a/git-send-email.perl +++ b/git-send-email.perl @@ -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 {