svn diff -p1 ?
From: Alexey Dobriyan <adobriyan_at_mail.ru>
Date: 2004-07-31 00:39:04 CEST
This email is the result of my experience of using Subversion for Linux kernel
The problem is that "svn diff" generate "-p0" patches:
--- Makefile
However, Linux kernel developers now work with "-p1" patches:
--- linux-2.6.8-rc2/Makefile
I know that
a) at least one person sent Subversion generated patches to a Linux kernel
Myself imported Linux kernel tree, started making changes, but do not sent
a) they are "-p0"
Possible solutions:
0. Make Subversion generate "-p1" patches always.
Two-liner to subversion/libsvn_diff/diff_file.c
1. svn diff -p1 (but not p2, p3, ...)
svn_diff_file_output_unified() gets new parameter -
Logic of svn_diff_file_output_unified() becomes
svn_diff_file_output_unified(...) becomes
Next step: get "-p1" option from command line, propagate patch_level down.
I do not know a project which demands -p2 and greater levels. If there is
2. svn diff -pN
Everything like in #1 with an obvious change in output.
So, people, what do you think?
Alexey
---------------------------------------------------------------------
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.