Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Include image file in svn diff patch

I am creating a svn diff patch, however it seems the image files are not getting included. The patch contain similar lines for each image file, as shown below:

    Index: crimgeoprofile/code/jquery/css/ui-lightness/images/animated-overlay.gif
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: crimgeoprofile/code/jquery/css/ui-lightness/images/animated-overlay.gif
===================================================================
--- crimgeoprofile/code/jquery/css/ui-lightness/images/animated-overlay.gif (revision 1510040)
+++ crimgeoprofile/code/jquery/css/ui-lightness/images/animated-overlay.gif (working copy)

I am using the following command to create a patch:

svn diff > test.diff

Any suggestions on how I can include image files will be appreciated.

like image 378
user1628340 Avatar asked Aug 09 '13 19:08

user1628340


1 Answers

With Suversion 1.9 you can use --git flag for include binary content to patch file, for example:

svn diff https://storage/svn/project/trunk --git -c 42 > patch-42.diff

Subversion 1.8 already have --git flag, but ignore binary content with it.

like image 114
Bozaro Avatar answered Oct 07 '22 11:10

Bozaro