11

I am trying to make a patch with multiple files in different directories. I don't want to include all my uncommitted files as I have a lot not applicable to the patch.

I know of this command to create a patch with a specific file, only issue is this is one file:

svn diff -up original.php > filename.patch

Is there any way to do this with multiple files in different directories ?

Thanks

4

1 回答 1

15

您可以尝试使用:svn diff -r BEGIN_REVISION:END_REVISION > patch_file.patch 这将使所有修改过的文件上的补丁。

如果要为具体文件创建补丁,可以在>.

svn diff dir_name_1/first.php dir_name_2/second.php > patch_file.patch

对于一个目录: svn diff -uRp dir_name > patch_file.patch

我希望它对你有帮助。

于 2012-11-02T10:16:40.627 回答