More git friendliness for prepare-ChangeLog
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.


git-svn-id: bf5cd6ccde378db821296732a091cfbcf5285fbd@24432 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Bysmyyr/blink-crosswalk,Pluto-tv/blink-crosswalk,ondra-novak/blink,PeterWangIntel/blink-crosswalk,jtg-gg/blink,XiaosongWei/blink-crosswalk,modulexcite/blink,ondra-novak/blink,jtg-gg/blink,hgl888/blink-crosswalk-efl,nwjs/blink,kurli/blink-crosswalk,Pluto-tv/blink-crosswalk,crosswalk-project/blink-crosswalk-efl,XiaosongWei/blink-crosswalk,smishenk/blink-crosswalk,hgl888/blink-crosswalk-efl,modulexcite/blink,PeterWangIntel/blink-crosswalk,Bysmyyr/blink-crosswalk,Bysmyyr/blink-crosswalk,crosswalk-project/blink-crosswalk-efl,kurli/blink-crosswalk,smishenk/blink-crosswalk,jtg-gg/blink,modulexcite/blink,nwjs/blink,kurli/blink-crosswalk,ondra-novak/blink,Pluto-tv/blink-crosswalk,PeterWangIntel/blink-crosswalk,XiaosongWei/blink-crosswalk,ondra-novak/blink,XiaosongWei/blink-crosswalk,smishenk/blink-crosswalk,nwjs/blink,hgl888/blink-crosswalk-efl,ondra-novak/blink,smishenk/blink-crosswalk,jtg-gg/blink,smishenk/blink-crosswalk,smishenk/blink-crosswalk,jtg-gg/blink,modulexcite/blink,hgl888/blink-crosswalk-efl,kurli/blink-crosswalk,XiaosongWei/blink-crosswalk,modulexcite/blink,ondra-novak/blink,Pluto-tv/blink-crosswalk,PeterWangIntel/blink-crosswalk,crosswalk-project/blink-crosswalk-efl,PeterWangIntel/blink-crosswalk,jtg-gg/blink,Pluto-tv/blink-crosswalk,Bysmyyr/blink-crosswalk,hgl888/blink-crosswalk-efl,ondra-novak/blink,nwjs/blink,XiaosongWei/blink-crosswalk,Bysmyyr/blink-crosswalk,kurli/blink-crosswalk,kurli/blink-crosswalk,nwjs/blink,modulexcite/blink,modulexcite/blink,modulexcite/blink,crosswalk-project/blink-crosswalk-efl,jtg-gg/blink,jtg-gg/blink,Pluto-tv/blink-crosswalk,XiaosongWei/blink-crosswalk,PeterWangIntel/blink-crosswalk,XiaosongWei/blink-crosswalk,PeterWangIntel/blink-crosswalk,smishenk/blink-crosswalk,ondra-novak/blink,kurli/blink-crosswalk,kurli/blink-crosswalk,PeterWangIntel/blink-crosswalk,Bysmyyr/blink-crosswalk,Pluto-tv/blink-crosswalk,ondra-novak/blink,smishenk/blink-crosswalk,nwjs/blink,crosswalk-project/blink-crosswalk-efl,XiaosongWei/blink-crosswalk,Bysmyyr/blink-crosswalk,crosswalk-project/blink-crosswalk-efl,modulexcite/blink,crosswalk-project/blink-crosswalk-efl,nwjs/blink,jtg-gg/blink,jtg-gg/blink,nwjs/blink,nwjs/blink,PeterWangIntel/blink-crosswalk,kurli/blink-crosswalk,crosswalk-project/blink-crosswalk-efl,nwjs/blink,kurli/blink-crosswalk,hgl888/blink-crosswalk-efl,Pluto-tv/blink-crosswalk,Bysmyyr/blink-crosswalk,modulexcite/blink,hgl888/blink-crosswalk-efl,Pluto-tv/blink-crosswalk,Pluto-tv/blink-crosswalk,hgl888/blink-crosswalk-efl,crosswalk-project/blink-crosswalk-efl,smishenk/blink-crosswalk,smishenk/blink-crosswalk,PeterWangIntel/blink-crosswalk,hgl888/blink-crosswalk-efl,Bysmyyr/blink-crosswalk,XiaosongWei/blink-crosswalk,hgl888/blink-crosswalk-efl,Bysmyyr/blink-crosswalk