Changeset 24432 in webkit


Ignore:
Timestamp:
Jul 18, 2007 6:38:59 PM (17 years ago)
Author:
aroben
Message:

More git friendliness for prepare-ChangeLog

The overall change is to remove the use of git-status and replace it
with git-diff --name-status (which we were already using in the
--git-commit case).

This lets us respect directories specified on the command line when
using git, just as we do for Subversion. It also speeds things up a
bit, especially in the subdirectory case, as git-status is pretty slow.

I also fixed some issues where we wouldn't detect copied files and
would reverse the new filename and the original filename for renamed files.

Reviewed by Mark.

  • Scripts/prepare-ChangeLog:

(sub diffFromToString): Added.
(sub diffCommand): Don't append the paths in the --git-commit case, as
we should be operating on the entire commit.
(sub statusCommand): Always use git-diff --name-status, and added an
extra -C option to git-diff to make it find a few more copied files.
(sub createPatchCommand): Collapsed the two git cases a bit, and added
the extra -C option as above.
(sub generateFileList): Remove the git-status codepath, and recognize
file copies in the --name-status output.
(sub isModifiedOrAddedStatus): Collapsed the status codes into one
dictionary.
(sub isConflictStatus): Updated the git dictionary.
(sub statusDescription): Updated the git dictionary.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r24427 r24432  
     12007-07-18  Adam Roben  <aroben@apple.com>
     2
     3        More git friendliness for prepare-ChangeLog
     4
     5        The overall change is to remove the use of git-status and replace it
     6        with git-diff --name-status (which we were already using in the
     7        --git-commit case).
     8
     9        This lets us respect directories specified on the command line when
     10        using git, just as we do for Subversion. It also speeds things up a
     11        bit, especially in the subdirectory case, as git-status is pretty slow.
     12
     13        I also fixed some issues where we wouldn't detect copied files and
     14        would reverse the new filename and the original filename for renamed files.
     15
     16        Reviewed by Mark.
     17
     18        * Scripts/prepare-ChangeLog:
     19        (sub diffFromToString): Added.
     20        (sub diffCommand): Don't append the paths in the --git-commit case, as
     21        we should be operating on the entire commit.
     22        (sub statusCommand): Always use git-diff --name-status, and added an
     23        extra -C option to git-diff to make it find a few more copied files.
     24        (sub createPatchCommand): Collapsed the two git cases a bit, and added
     25        the extra -C option as above.
     26        (sub generateFileList): Remove the git-status codepath, and recognize
     27        file copies in the --name-status output.
     28        (sub isModifiedOrAddedStatus): Collapsed the status codes into one
     29        dictionary.
     30        (sub isConflictStatus): Updated the git dictionary.
     31        (sub statusDescription): Updated the git dictionary.
     32
    1332007-07-18  Timothy Hatcher  <timothy@apple.com>
    234
Note: See TracChangeset for help on using the changeset viewer.