Your message dated Mon, 11 Dec 2006 13:58:51 +0100
with message-id <[EMAIL PROTECTED]>
has caused the Debian Bug report #402524,
regarding patch requires the same number of lines in the prefix and suffix 
contexts
to be marked as having been forwarded to the upstream software
author(s) GNU Utils <[EMAIL PROTECTED]>.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Hi,

here's a wishlist item for patch that seems reasonable.

Christoph
PS: please Cc: all replies to [EMAIL PROTECTED], thanks.
-- 
[EMAIL PROTECTED] | http://www.df7cb.de/
--- Begin Message ---
Package: patch
Version: 2.5.9-4
Severity: wishlist


Hello,

Please have a look at the attached a and a.diff files.

I tend to think that a.diff is a valid unified diff, that patch should be
able to apply on a. (I could only find
http://www.gnu.org/software/diffutils/manual/html_node/Detailed-Unified.html
for the description of the unified diff format).

For the review of text files or PO files diff, I prefer to keep whole
paragraphs in the context (and remove unrelated paragraphs), but then the
diff hunk do not have the same amount of prefix and suffix lines and
cannot be applied by patch

Currently, patch assumes (in locate_hunk) that if the number of prefix
context lines if greater than the number of suffix lines, the patch must
be located at the end of the file.

Assigning fuzz to prefix_fuzz and suffix_fuzz in patch.c:locate_hunk()
fixes this issue.

Thanks in advance,
-- 
Nekral
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- a.orig
+++ a
@@ -9,10 +9,10 @@
 9
 10
 11
 12
 13
 14
-15
+5
 16
 17
 18

--- End Message ---

Attachment: signature.asc
Description: Digital signature


--- End Message ---

Reply via email to