5

I found this patch on source forge (cocoa.diff), and it implies that I can patch using the cocoa.diff file. However, I can't seem to figure out how to use the .diff file.

Thanks for any help!

EDIT: I tried "patch p1 < cocoa.diff" and the output was "patch: ** Only garbage was found in the patch input." Does this mean that the .diff file is corrupt or incorrect? Also, I'm using Mac OSX 10.6.

hassaanm
  • 391
  • 2
  • 5
  • 14
  • see http://stackoverflow.com/questions/11531693/patch-only-garbage-was-found-in-the-patch-input/11744269#11744269 – michael Aug 03 '12 at 02:46

1 Answers1

6

the file cocoa.diff seems OK, however the link failed the first time I tried and returned some error HTML which indeed looks like garbage to patch. Your command seems nearly OK (lacks a dash: patch -p1 < cocoa.diff seems better).

armel
  • 2,497
  • 1
  • 24
  • 30