- Oct 25, 2007
- 1,981
- 1
- 0
I've made some changes to some source code on a *nix system and was wondering what the best practices are for creating patch files using diff. I've done some googling, but all I've really found is folks saying "use the arguments". Man page for diff doesn't help me much either: "-c Use the context output format". Unfortunately it doesn't tell me what the differences are between the different output formats.
I would like for my patch to work against different versions of the same source, and since the function I'm modifying is the same I figured it would work, but apparently it fails since the line numbers are different.
tl;dr
Anyone have any info on what are considered best practices for using diff to create patches?
Also, what options can I use so that I don't need to worry about line numbers?
I would like for my patch to work against different versions of the same source, and since the function I'm modifying is the same I figured it would work, but apparently it fails since the line numbers are different.
tl;dr
Anyone have any info on what are considered best practices for using diff to create patches?
Also, what options can I use so that I don't need to worry about line numbers?
