Changeset 57084 in webkit


Ignore:
Timestamp:
Apr 5, 2010 10:55:14 AM (14 years ago)
Author:
ojan@chromium.org
Message:

2010-04-05 Ojan Vafai <ojan@chromium.org>

Reviewed by Eric Seidel.

prepare-ChangeLog should take a merge-base for which git branch to diff against.
https://bugs.webkit.org/show_bug.cgi?id=36394

  • Scripts/prepare-ChangeLog:
Location:
trunk/WebKitTools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r57066 r57084  
     12010-04-05  Ojan Vafai  <ojan@chromium.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        prepare-ChangeLog should take a merge-base for which git branch to diff against.
     6        https://bugs.webkit.org/show_bug.cgi?id=36394
     7
     8        * Scripts/prepare-ChangeLog:
     9
    1102010-04-05  Chris Jerdonek  <cjerdonek@webkit.org>
    211
  • trunk/WebKitTools/Scripts/prepare-ChangeLog

    r55918 r57084  
    103103my $name;
    104104my $emailAddress;
     105my $mergeBase = 0;
    105106my $gitCommit = 0;
    106107my $gitIndex = "";
     
    116117               "name:s" => \$name,
    117118               "email:s" => \$emailAddress,
     119               "merge-base:s" => \$mergeBase,
    118120               "git-commit:s" => \$gitCommit,
    119121               "git-index" => \$gitIndex,
     
    127129    print STDERR "  --bug          Fill in the ChangeLog bug information from the given bug.\n";
    128130    print STDERR "  -d|--diff      Spew diff to stdout when running\n";
     131    print STDERR "  --merge-base   Populate the ChangeLogs with the diff to this branch\n";
    129132    print STDERR "  --git-commit   Populate the ChangeLogs from the specified git commit\n";
    130133    print STDERR "  --git-index    Populate the ChangeLogs from the git index only\n";
     
    12551258    return "\"$gitCommit^\" \"$gitCommit\"" if $gitCommit;
    12561259    return "--cached" if $gitIndex;
     1260    return $mergeBase if $mergeBase;
    12571261    return "HEAD" if $isGit;
    12581262}
     
    12691273    } elsif ($isGit) {
    12701274        $command = "$GIT diff --no-ext-diff -U0 " . diffFromToString();
    1271         $command .= " -- $pathsString" unless $gitCommit;
     1275        $command .= " -- $pathsString" unless $gitCommit or $mergeBase;
    12721276    }
    12731277
Note: See TracChangeset for help on using the changeset viewer.