|
Lines 128-133
sub main()
Tools/Scripts/prepare-ChangeLog_sec1
|
| 128 |
my $gitCommit = 0; |
128 |
my $gitCommit = 0; |
| 129 |
my $gitIndex = ""; |
129 |
my $gitIndex = ""; |
| 130 |
my $gitReviewer = ""; |
130 |
my $gitReviewer = ""; |
|
|
131 |
my $checkWebKitStyle = 1; |
| 131 |
my $openChangeLogs = 0; |
132 |
my $openChangeLogs = 0; |
| 132 |
my $writeChangeLogs = 1; |
133 |
my $writeChangeLogs = 1; |
| 133 |
my $showHelp = 0; |
134 |
my $showHelp = 0; |
|
Lines 144-149
sub main()
Tools/Scripts/prepare-ChangeLog_sec2
|
| 144 |
"git-index" => \$gitIndex, |
145 |
"git-index" => \$gitIndex, |
| 145 |
"git-reviewer:s" => \$gitReviewer, |
146 |
"git-reviewer:s" => \$gitReviewer, |
| 146 |
"help|h!" => \$showHelp, |
147 |
"help|h!" => \$showHelp, |
|
|
148 |
"style!" => \$checkWebKitStyle, |
| 147 |
"open|o!" => \$openChangeLogs, |
149 |
"open|o!" => \$openChangeLogs, |
| 148 |
"write!" => \$writeChangeLogs, |
150 |
"write!" => \$writeChangeLogs, |
| 149 |
"update!" => \$updateChangeLogs); |
151 |
"update!" => \$updateChangeLogs); |
|
Lines 158-163
sub main()
Tools/Scripts/prepare-ChangeLog_sec3
|
| 158 |
print STDERR " --git-reviewer When populating the ChangeLogs from a git commit claim that the spcified name reviewed the change.\n"; |
160 |
print STDERR " --git-reviewer When populating the ChangeLogs from a git commit claim that the spcified name reviewed the change.\n"; |
| 159 |
print STDERR " This option is useful when the git commit lacks a Signed-Off-By: line\n"; |
161 |
print STDERR " This option is useful when the git commit lacks a Signed-Off-By: line\n"; |
| 160 |
print STDERR " -h|--help Show this help message\n"; |
162 |
print STDERR " -h|--help Show this help message\n"; |
|
|
163 |
print STDERR " --[no-]style Run check-webkit-style script when done (default: style)\n"; |
| 161 |
print STDERR " -o|--open Open ChangeLogs in an editor when done\n"; |
164 |
print STDERR " -o|--open Open ChangeLogs in an editor when done\n"; |
| 162 |
print STDERR " --[no-]update Update ChangeLogs from svn before adding entry (default: update)\n"; |
165 |
print STDERR " --[no-]update Update ChangeLogs from svn before adding entry (default: update)\n"; |
| 163 |
print STDERR " --[no-]write Write ChangeLogs to disk (otherwise send new entries to stdout) (default: write)\n"; |
166 |
print STDERR " --[no-]write Write ChangeLogs to disk (otherwise send new entries to stdout) (default: write)\n"; |
|
Lines 225-230
sub main()
Tools/Scripts/prepare-ChangeLog_sec4
|
| 225 |
printDiff($changedFiles, $gitCommit, $gitIndex, $mergeBase); |
228 |
printDiff($changedFiles, $gitCommit, $gitIndex, $mergeBase); |
| 226 |
} |
229 |
} |
| 227 |
|
230 |
|
|
|
231 |
if ($checkWebKitStyle) { |
| 232 |
print STDERR " Running check-webkit-style.\n "; |
| 233 |
system "$FindBin::Bin/check-webkit-style"; |
| 234 |
} |
| 235 |
|
| 228 |
# Open ChangeLogs. |
236 |
# Open ChangeLogs. |
| 229 |
if ($openChangeLogs && @$changeLogs) { |
237 |
if ($openChangeLogs && @$changeLogs) { |
| 230 |
openChangeLogs($changeLogs); |
238 |
openChangeLogs($changeLogs); |
|
Lines 1657-1663
sub createPatchCommand($$$$)
Tools/Scripts/prepare-ChangeLog_sec5
|
| 1657 |
|
1665 |
|
| 1658 |
my $command; |
1666 |
my $command; |
| 1659 |
if (isSVN()) { |
1667 |
if (isSVN()) { |
| 1660 |
$command = "'$FindBin::Bin/svn-create-patch' $changedFilesString"; |
1668 |
$command = "'$FindBin::Bin/svn-create-patch --no-style' $changedFilesString"; |
| 1661 |
} elsif (isGit()) { |
1669 |
} elsif (isGit()) { |
| 1662 |
$command = GIT . " diff -M -C " . diffFromToString($gitCommit, $gitIndex, $mergeBase); |
1670 |
$command = GIT . " diff -M -C " . diffFromToString($gitCommit, $gitIndex, $mergeBase); |
| 1663 |
$command .= " -- $changedFilesString" unless $gitCommit; |
1671 |
$command .= " -- $changedFilesString" unless $gitCommit; |