[llvm-commits] CVS: CVSROOT/commit-diffs.pl

Brian Gaeke gaeke at cs.uiuc.edu
Mon Oct 6 15:56:01 PDT 2003


Changes in directory CVSROOT:

commit-diffs.pl updated: 1.43 -> 1.44

---
Log message:

Put the number of pluses and minuses in the e-mail message. Heh heh heh.


---
Diffs of the changes:

Index: CVSROOT/commit-diffs.pl
diff -u CVSROOT/commit-diffs.pl:1.43 CVSROOT/commit-diffs.pl:1.44
--- CVSROOT/commit-diffs.pl:1.43	Fri Aug  1 16:17:10 2003
+++ CVSROOT/commit-diffs.pl	Mon Oct  6 15:55:11 2003
@@ -121,7 +121,10 @@
   }
 }
 $msg .= "\n---\nLog message:\n\n" . join('', at logmessage);
-$msg .= "\n---\nDiffs of the changes:\n\n" . $diffs;
+foreach my $line (split /\n/, $diffs) {
+  $pluses++ if /^\+/; $minuses++ if /^\-/;
+}
+$msg .= "\n---\nDiffs of the changes:  (+$pluses -$minuses)\n\n" . $diffs;
 
 open TEMP, ">$TEMPFILE";
 print TEMP $msg;





More information about the llvm-commits mailing list