Lines Matching full:patch

21  * patch - a program to apply diffs to original files
26 * $OpenBSD: patch.c,v 1.54 2014/12/13 10:31:07 tobias Exp $
56 bool nonempty_patchf_seen = false; /* seen nonempty patch file? */
116 /* buffer holding the name of the rejected patch file. */
134 /* patch using ifdef, ifndef, etc. */
223 /* for each patch in patch file */ in main()
241 * between the patch and the file already existing. We defer in main()
272 /* apply each hunk of patch */ in main()
306 /* dwim for reversed patch? */ in main()
326 say("Ignoring previously applied (or reversed) patch.\n"); in main()
330 say("%seversed (or previously applied) patch detected! %s -R.", in main()
334 ask("%seversed (or previously applied) patch detected! %s -R? [y] ", in main()
427 * remove_file is a per-patch flag indicating in main()
485 /* Prepare to find the next patch to do in the patch file. */
694 "usage: patch [-bCcEeflNnRstuv] [-B backup-prefix] [-D symbol] [-d directory]\n" in usage()
698 " patch <patchfile\n"); in usage()
703 * Attempt to find the right place to apply this hunk of patch.
939 say("Out-of-sync patch, lines %ld,%ld--mangled text or line numbers, maybe?\n", in apply_hunk()
1078 * Does the patch pattern match at line base+offset?
1090 /* Patch does not match if we don't have any more context to use */ in patch_match()
1107 * If the file has no eol, the patch line should in patch_match()
1156 * If the patch creates the file and we're reversing the patch, in handle_creation()
1157 * then we need to indicate to the patch processor that it's OK in handle_creation()
1163 * Otherwise, we need to blow the horn because the patch appears in handle_creation()
1177 say("Ignoring previously applied (or reversed) patch.\n"); in handle_creation()
1190 say("Patch creates file that already exists, %s %seversed", in handle_creation()
1194 ask("Patch creates file that already exists! %s -R? [y] ", in handle_creation()
1213 * prior patch/hunk as in that branch. in handle_creation()
1222 * user declined. This keeps the main patch processor in the loop since in handle_creation()