Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Create a Patch file on Mac OS X

Tags:

macos

ios

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

like image 496
Jyothi Avatar asked Dec 05 '13 10:12

Jyothi


People also ask

Can we edit patch file?

If you open a diff file in emacs and put the editor in "diff" mode you can actually edit patches and it will update the hunk markers in a smart way. Works really well for me! Yes!


1 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

like image 166
igoris Avatar answered Oct 04 '22 09:10

igoris