In my iOS Application I want to create a patch file for the modified files to send it to Review Board.How can i generate a patch file in Mac OS by using Terminal
4
-
With the reviewboard, do you mean the AppStore review? That you do not send in a patch but the full app.– rckoenesDec 5, 2013 at 10:45
-
not appstore review,i need to send it to Client for the code review through Review Board– JyothiDec 5, 2013 at 10:50
-
If you are using a code repository (like svn or git) you can send them a diff of the two relevant revisions.– AlexVogelDec 5, 2013 at 10:56
-
How can i create the diff file from Xcode or from Terminal?– JyothiDec 5, 2013 at 11:00
Add a comment
|
2 Answers
If you don't want to use VCS for creating patch then you can use diff tool.
You can create patch for one file using
diff -u original.c new.c > original.patch
Or
diff -rupN original/ new/ > original.patch
For entire folder
-
I want to create a diff file for the local folder and SVN folder and i'm using Xcode IDE– JyothiDec 5, 2013 at 11:09
-
So, you have original sources in svn folder and your modified sources in another folder, right? Or you changed sources in svn folder?– igorisDec 5, 2013 at 11:11
-
If you're using SVN, you can just do <code>svn diff > whatever.patch</code> from your working copy. Dec 5, 2013 at 11:11
-
@igoris Yes i have original sources in SVN and i have modified the local copy and i need diff file of these two– JyothiDec 5, 2013 at 11:14
-
If your modified sources are in the SVN working copy then just use svn diff > whatever.patch (as stated by @Zydeco). If you've copied sources to another folder and then modified them, then use diff command– igorisDec 5, 2013 at 11:18
First check in the Xcode Downloads whether the Command Line Tools are downloaded or not. if not first download that and then follow the below procedure
In Terminal go to the directory where we need that Patch File and execute the Command svn diff > somename.patch then you will get a patch file in that directory
-
1I know it's 9 years later. I wonder why this is the accepted answer. The OP mentioned nothing about svn– akauppiApr 1, 2021 at 8:13
-
I know this is 8 years later. The OP did mention
svnin a follow-up comment: stackoverflow.com/questions/20397345/…. "I want to create a diff file for the local folder and SVN folder and i'm using Xcode IDE"– ByronJan 11, 2022 at 18:09