[SLL] How do you make a patch file?

Glenn Stone technoshaman at liawol.org
Tue Nov 20 14:06:06 PST 2007


On Tue, Nov 20, 2007 at 01:59:11PM -0800, Francois Caen wrote:
>On Nov 20, 2007 1:52 PM, Clifford Snow <jcs at snowandsnow.us> wrote:
>> I want to send in a fix to a bug in the gnome-applets.  Instead of
>> sending in the entire file, how do you create a patch file that a
>> maintainer could just apply to the source code?
>
>man diff

Not just any diff, though.  "regular" diff is darn near unreadable.  A
context diff is readable, but bulkier.  Side-by-side may be readable by
humans, but I wouldn't want to code a patch client to read it.  Unified is
what you want.  

Oh, and something I forgot.  If you're poking at multiple files, the "r"
flag is useful... :)

-- Glenn


More information about the linux-list mailing list