What is a diff, and what do I do with it?

I can't find a good tutorial on what to do with the patches that are floating around on this forum. How do I install or implement a .diff file?

Anonymous wrote: I can't

Anonymous wrote:

I can't find a good tutorial on what to do with the patches that are floating around on this forum.

Patches in Diff format do not only float around this forum, they are a common way to publish patches: Diff in Wikipedia. I'll give a very brief idea of it.

Anonymous wrote:

How do I install or implement a .diff file?

A patch in diff format only says what lines to change in other files. So you need the original files. For example, if you download a patch called fix-authentication.diff, that fixes a bug in ejabberd 2.0.0, you need the source code of ejabberd 2.0.0. And then:

$ cd ejabberd-2.0.0
$ patch -p0
Syndicate content