This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: How to resolve hiccups by patch program?


On 19 January 2007 15:00, Markus Elfring wrote:

> Are potential line ending variations the only reason for the reported
> change rejections?
> Do other details result also in a mismatch?

  Yes; if patch can't find anything that corresponds to the unaltered lines at
the start and end of the hunk, it doesn't know where to put it; if the lines
that it finds there don't match what the patch says the old versions look
like, it also doesn't work.

file.txt:
1 alpha 
2 bravo
3 charlie
4 delta
5 echo 
6 foxtrot
7 golf
8 hotel 
9 india


example bad patch hunk #1: old lines don't match

@@
 3 charlie
 4 delta
-5 wibble wobble blort
+5 echo echo
 6 foxtrot 
 7 golf

example bad patch hunk #2: location of patch can't be found
@@
 foo
 bar
-5 echo
+5 echo echo
 baz
 quux


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]