Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git format-patch viewer?

Tags:

git

Somebody is sending me patches generated by "git format-patch".

Is there a gui (on linux) that can open these .patch files?

I've tried many diff gui but all they do is compare two existing files/folders. None can display the patch, except kompare which spits a "The diff is malformed. Some lines could not be parsed and will not be displayed in the diff view." everytime.

like image 262
big_gie Avatar asked Aug 04 '11 21:08

big_gie


1 Answers

I found a solution:

cat patch | colordiff | less -RS

Further reading: http://www.markusbe.com/2009/12/how-to-read-a-patch-or-diff-and-understand-its-structure-to-apply-it-manually/

like image 123
Endle_Zhenbo Avatar answered Oct 19 '22 05:10

Endle_Zhenbo