summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 238cc63)
raw | patch | inline | side by side (parent: 238cc63)
author | Robin H. Johnson <robbat2@gentoo.org> | |
Thu, 26 Apr 2007 02:37:16 +0000 (19:37 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Thu, 26 Apr 2007 03:59:57 +0000 (20:59 -0700) |
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>
instead of a real one.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-send-email.perl | patch | blob | history |
diff --git a/git-send-email.perl b/git-send-email.perl
index 5e38a97cb62703f10b242111376ca26ee5888944..50d45fe00547e7ab784e095025c15ba2c51064ba 100755 (executable)
--- a/git-send-email.perl
+++ b/git-send-email.perl
$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 {