简体   繁体   中英

SVN Patch - with multiple files

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

You can try used: svn diff -r BEGIN_REVISION:END_REVISION > patch_file.patch This will make the patch on all modified files.

If you want create patch for concrete files, you can enumerate them before > .

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

For one directory: svn diff -uRp dir_name > patch_file.patch

I'll hope it helps you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM