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/