Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Prefix Dry- to the message status to denote dry-runs.
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>
git-send-email.perl
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
238cc63
)
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
@@
-488,9
+488,9
@@
sub send_message
$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 {