Lines Matching full:hunk
97 fprintf(stderr, "Hunk %d FAILED %ld/%ld.\n",
125 // Given a hunk of a unified diff, make the appropriate change to the file.
126 // This does not use the location information, but instead treats a hunk
145 if (PATCH_DEBUG) fprintf(stderr, "HUNK:%s\n", plist->data);
151 // Loop through input data searching for this hunk. Match all context
153 // complete hunk.
161 // Figure out which line of hunk to compare with next. (Skip lines
162 // of the hunk we'd be adding.)
174 // Does this hunk need to match EOF?
178 fprintf(stderr, "Possibly reversed hunk %d at %ld\n",
181 // File ended before we found a place for this hunk.
187 // Compare this line with next expected line of hunk.
190 // we hit the end of a hunk that needed EOF, and this isn't EOF.
246 // Call apply_one_hunk() on each hunk.
248 // state 0: Not in a hunk, look for +++.
250 // state 2: In hunk: counting initial context lines
251 // state 3: In hunk: getting body
284 // Are we assembling a hunk?
296 // If we've consumed all expected hunk lines, apply the hunk.
332 // way the patch man page says, so you have to read the first hunk
335 // Start a new hunk? Usually @@ -oldline,oldlen +newline,newlen @@
352 // If this is the first hunk, open the file.
363 // or if new hunk is empty (zero context) after patching