Home | History | Annotate | Download | only in posix

Lines Matching full:hunk

95   fprintf(stderr, "Hunk %d FAILED %ld/%ld.\n",
123 // Given a hunk of a unified diff, make the appropriate change to the file.
124 // This does not use the location information, but instead treats a hunk
143 if (toys.optflags & FLAG_x) fprintf(stderr, "HUNK:%s\n", plist->data);
150 // Loop through input data searching for this hunk. Match all context
152 // complete hunk.
160 // Figure out which line of hunk to compare with next. (Skip lines
161 // of the hunk we'd be adding.)
173 // Does this hunk need to match EOF?
177 fprintf(stderr, "Possibly reversed hunk %d at %ld\n",
180 // File ended before we found a place for this hunk.
186 // Compare this line with next expected line of hunk.
189 // we hit the end of a hunk that needed EOF, and this isn't EOF.
211 // If this hunk must match start of file, fail if it didn't.
251 // Call apply_one_hunk() on each hunk.
253 // state 0: Not in a hunk, look for +++.
255 // state 2: In hunk: counting initial context lines
256 // state 3: In hunk: getting body
289 // Are we assembling a hunk?
301 // If we've consumed all expected hunk lines, apply the hunk.
337 // way the patch man page says, so you have to read the first hunk
340 // Start a new hunk? Usually @@ -oldline,oldlen +newline,newlen @@
357 // If this is the first hunk, open the file.
368 // or if new hunk is empty (zero context) after patching