Changeset 45012 in webkit
- Timestamp:
- Jun 23, 2009 4:10:55 PM (15 years ago)
- Location:
- trunk/WebKitTools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKitTools/ChangeLog
r44995 r45012 1 2009-06-23 Joe Mason <joe.mason@torchmobile.com> 2 3 Reviewed by Adam Treat. 4 5 https://bugs.webkit.org/show_bug.cgi?id=26664 6 * Scripts/prepare-ChangeLog: Added --git-index mode to list only the 7 changes which are already staged in the index. Useful to create an 8 entry for what you're about to commit while ignoring unstaged changes. 9 1 10 2009-06-23 Anders Carlsson <andersca@apple.com> 2 11 -
trunk/WebKitTools/Scripts/prepare-ChangeLog
r44716 r45012 5 5 # Copyright (C) 2000, 2001 Eazel, Inc. 6 6 # Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. 7 # Copyright (C) 2009 Torchmobile, Inc. 7 8 # 8 9 # prepare-ChangeLog is free software; you can redistribute it and/or … … 29 30 # Objective-C, C++ and Objective-C++ support added by Maciej Stachowiak <mjs@apple.com> 30 31 # Git support added by Adam Roben <aroben@apple.com> 32 # --git-index flag added by Joe Mason <joe.mason@torchmobile.com> 31 33 32 34 … … 94 96 95 97 my $gitCommit = 0; 98 my $gitIndex = ""; 96 99 my $gitReviewer = ""; 97 100 my $openChangeLogs = 0; … … 102 105 GetOptions("diff|d!" => \$spewDiff, 103 106 "git-commit:s" => \$gitCommit, 107 "git-index" => \$gitIndex, 104 108 "git-reviewer:s" => \$gitReviewer, 105 109 "help|h!" => \$showHelp, … … 110 114 print STDERR " -d|--diff Spew diff to stdout when running\n"; 111 115 print STDERR " --git-commit Populate the ChangeLogs from the specified git commit\n"; 116 print STDERR " --git-index Populate the ChangeLogs from the git index only\n"; 112 117 print STDERR " --git-reviewer When populating the ChangeLogs from a git commit claim that the spcified name reviewed the change.\n"; 113 118 print STDERR " This option is useful when the git commit lacks a Signed-Off-By: line\n"; … … 117 122 exit 1; 118 123 } 124 125 die "--git-commit and --git-index are incompatible." if ($gitIndex && $gitCommit); 119 126 120 127 my %paths = processPaths(@ARGV); … … 1142 1149 return $gitCommit if $gitCommit =~ m/.+\.\..+/; 1143 1150 return "\"$gitCommit^\" \"$gitCommit\"" if $gitCommit; 1151 return "--cached" if $gitIndex; 1144 1152 return "HEAD" if $isGit; 1145 1153 } … … 1226 1234 print STDERR " Running status to find changed, added, or removed files.\n"; 1227 1235 open STAT, "-|", statusCommand(keys %paths) or die "The status failed: $!.\n"; 1228 my $inGitCommitSection = 0;1229 1236 while (<STAT>) { 1230 1237 my $status; … … 1337 1344 ); 1338 1345 1339 return 0 if $gitCommit; # an existing commitcannot have conflicts1346 return 0 if ($gitCommit || $gitIndex); # an existing commit or staged change cannot have conflicts 1340 1347 return $svn{$status} if $isSVN; 1341 1348 return $git{$status} if $isGit;
Note: See TracChangeset
for help on using the changeset viewer.