Experimental Patchwork setup
Jeremy Kerr
jk@ozlabs.org
Thu Jun 10 08:15:00 GMT 2010
Hi Paolo,
> The hash would be different for git diff and svn diff due to the
> different headers.
The headers are not included in the hash. However, the filenames will need to
be the same - patchwork expects '-p1' patches, but normalises the top-level
directory.
For example, at http://patchwork.ozlabs.org/patch/55140/
--- gcc/config/rs6000/e500.h (revision 160245)
+++ gcc/config/rs6000/e500.h (working copy)
The parser normalises this to:
--- a/config/rs6000/e500.h
+++ b/config/rs6000/e500.h
which may or may not be what you want here (svn outputs -p0?).
The only difficulty is that the parser does not specify an order for the files
in a patch; I believe git orders the file changes alphabetically by filename,
but svn does not. This may cause different hashes.
Cheers,
Jeremy
More information about the Gcc
mailing list