[Gdal-dev] preferred diff format

Mateusz Loskot mateusz at loskot.net
Tue Apr 3 20:27:12 EDT 2007


Brian Claywell wrote:
> What's the preferred diff format for submitting patches? For example,
>  I'm currently using context diffs with three lines of context, e.g.,
> 
> 
> diff -rc3 /usr/src/gdal-1.4.0/frmts/hfa/ frmts/hfa/ >
> hfa-no-data.patch

If you can generate diff from working copy of GDAL SVN, then
please use 'svn diff' command.

> Are unified diffs preferable? I'm pretty new to submitting patches to
>  large projects.

Personally, when I generate patches with diff from GNU Diffutils,
I use 'diff -Nua' command, but when I apply "manually generated"
patches, I always do it manually.

Cheers
-- 
Mateusz Loskot
http://mateusz.loskot.net




More information about the Gdal-dev mailing list