Changeset 53796 in webkit
- Timestamp:
- Jan 25, 2010 3:18:01 AM (14 years ago)
- Location:
- trunk/WebKitTools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKitTools/ChangeLog
r53783 r53796 1 2010-01-25 Chris Jerdonek <cjerdonek@webkit.org> 2 3 Reviewed by Adam Barth. 4 5 Improved prepare-ChangeLog so that it preserves the relative 6 indentation of a git commit message. 7 8 https://bugs.webkit.org/show_bug.cgi?id=34058 9 10 * Scripts/prepare-ChangeLog: 11 - Also adjusted the script so that it does not add white 12 space characters to empty lines. 13 1 14 2010-01-24 Eric Seidel <eric@webkit.org> 2 15 -
trunk/WebKitTools/Scripts/prepare-ChangeLog
r50619 r53796 1607 1607 $commitLogCount++; 1608 1608 my $inHeader = 1; 1609 my $commitLogIndent; 1609 1610 my @lines = split(/\n/, $commitLog); 1610 1611 shift @lines; # Remove initial blank line … … 1621 1622 $reviewer .= ", " . $1; 1622 1623 } 1623 } elsif ( length $line == 0) {1624 } elsif ($line =~ /^\s*$/) { 1624 1625 $description = $description . "\n"; 1625 1626 } else { 1626 $line =~ s/^\s*//; 1627 $description = $description . " " . $line . "\n"; 1627 if (!defined($commitLogIndent)) { 1628 # Let the first line with non-white space determine 1629 # the global indent. 1630 $line =~ /^(\s*)\S/; 1631 $commitLogIndent = length($1); 1632 } 1633 # Strip at most the indent to preserve relative indents. 1634 $line =~ s/^\s{0,$commitLogIndent}//; 1635 $description = $description . (" " x 8) . $line . "\n"; 1628 1636 } 1629 1637 }
Note: See TracChangeset
for help on using the changeset viewer.