summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2007-04-25 19:37:16 -0700
committerJunio C Hamano <junkio@cox.net>2007-04-25 20:59:57 -0700
commit71c7da94218fbe36e64a326825ff30ef811b2a88 (patch)
treef6e40a53ffc923d49f96adb0fb6bef25fdd5b561
parent238cc6352eabe3f87f13093bc4015162bf424509 (diff)
downloadgit-71c7da94218fbe36e64a326825ff30ef811b2a88.tar.gz
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>
-rwxr-xr-xgit-send-email.perl4
1 files changed, 2 insertions, 2 deletions
diff --git a/git-send-email.perl b/git-send-email.perl
index 5e38a97cb6..50d45fe005 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 {