author | Robin Rosenberg <robin.rosenberg@dewire.com> | |
Sun, 10 Dec 2006 23:30:06 +0000 (00:30 +0100) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Mon, 11 Dec 2006 22:16:54 +0000 (14:16 -0800) | ||
commit | e86ad71fe5f53ae4434566bd09ea4256090e5a3a | |
tree | 0ec09f3db2242e1ced80374ebe9a5c5df228c418 | tree | snapshot |
parent | 6f9872582246b9b8ee4bdc9f6a563b409aab1ecb | commit | diff |
Make cvsexportcommit work with filenames with spaces and non-ascii characters.
This patch uses git-apply to do the patching which simplifies the code a lot
and also uses one pass to git-diff. git-apply gives information on added,
removed files as well as which files are binary.
Removed the test for checking for matching binary files when deleting them
since git-apply happily deletes the file. This is matter of taste since we
allow some fuzz for text patches also.
Error handling was cleaned up, but not much tested.
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
This patch uses git-apply to do the patching which simplifies the code a lot
and also uses one pass to git-diff. git-apply gives information on added,
removed files as well as which files are binary.
Removed the test for checking for matching binary files when deleting them
since git-apply happily deletes the file. This is matter of taste since we
allow some fuzz for text patches also.
Error handling was cleaned up, but not much tested.
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-cvsexportcommit.perl | diff | blob | history | |
t/t9200-git-cvsexportcommit.sh | diff | blob | history |