Changeset 24449 in webkit
- Timestamp:
- Jul 19, 2007 10:24:03 AM (17 years ago)
- Location:
- trunk/WebKitTools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKitTools/ChangeLog
r24448 r24449 1 2007-07-19 Adam Roben <aroben@apple.com> 2 3 Make commit-log-editor work with git 4 5 Reviewed by Sam. 6 7 * Scripts/commit-log-editor: Use VCSUtils and accept a git-style 8 commit message template. Also removed the unused $breakPoint variable. 9 1 10 2007-07-19 Adam Roben <aroben@apple.com> 2 11 -
trunk/WebKitTools/Scripts/commit-log-editor
r17203 r24449 1 1 #!/usr/bin/perl -w 2 2 3 # Copyright (C) 2006 Apple Computer,Inc. All rights reserved.3 # Copyright (C) 2006, 2007 Apple Inc. All rights reserved. 4 4 # 5 5 # Redistribution and use in source and binary forms, with or without … … 32 32 use FindBin; 33 33 use lib $FindBin::Bin; 34 use VCSUtils; 34 35 use webkitdirs; 35 36 … … 58 59 } 59 60 60 my $ breakPoint = 0;61 my $inChangesToBeCommitted = !isGit(); 61 62 my @changeLogs = (); 62 63 my $logContents = ""; 64 my $existingLog = 0; 63 65 open LOG, $log or die; 64 66 while (<LOG>) { 65 $breakPoint = /^--This line, and those below, will be ignored--$/ unless $breakPoint; 67 if (isGit()) { 68 if (/^# Changes to be committed:$/) { 69 $inChangesToBeCommitted = 1; 70 } elsif ($inChangesToBeCommitted && /^# \S/) { 71 $inChangesToBeCommitted = 0; 72 } 73 } 74 66 75 $logContents .= $_; 67 push @changeLogs, $1 if /^M....(.*ChangeLog)$/ && !/-ChangeLog/; 76 $existingLog = isGit() && !/^#/ unless $existingLog; 77 78 push @changeLogs, makeFilePathRelative($1) if $inChangesToBeCommitted && (/^M....(.*ChangeLog)$/ || /^#\tmodified: (.*ChangeLog)/) && !/-ChangeLog/; 68 79 } 69 80 close LOG; 81 82 # Don't change anything if there's already a log message 83 # (as can happen with git-commit --amend) 84 exec $editor, @ARGV if $existingLog; 70 85 71 86 my %changeLogSort;
Note: See TracChangeset
for help on using the changeset viewer.