aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgit2cl10
1 files changed, 6 insertions, 4 deletions
diff --git a/git2cl b/git2cl
index aa204f5..a6d0f68 100755
--- a/git2cl
+++ b/git2cl
@@ -287,7 +287,9 @@ while (<>) {
}
}
-print (strftime "%Y-%m-%d $author\n\n", @date);
-my $msg = wrap_log_entry($comment, "\t", 69, 69);
-$msg =~ s/[ \t]+\n/\n/g;
-print "\t* $msg\n";
+if (@files) {
+ print (strftime "%Y-%m-%d $author\n\n", @date);
+ my $msg = wrap_log_entry($comment, "\t", 69, 69);
+ $msg =~ s/[ \t]+\n/\n/g;
+ print "\t* $msg\n";
+}