Lines Matching refs:patch
687 // entries in <patch_sha1_str>, the corresponding patch from
689 // new file (the type of patch is automatically detected from the
712 printf("patch %s: ", source_filename);
736 // The early-exit case: the patch was already applied, this file
904 const Value* patch;
907 patch = source_patch_value;
910 patch = copy_patch_value;
913 if (patch->type != VAL_BLOB) {
914 printf("patch is not a blob\n");
936 // We write the decoded output to "<tgt-file>.patch".
939 strcat(outname, ".patch");
951 char* header = patch->data;
952 ssize_t header_bytes_read = patch->size;
961 patch, 0, sink, token, &ctx);
965 patch
967 printf("Unknown patch file format\n");
978 printf("applying patch failed\n");
981 printf("applying patch failed; retrying\n");
994 printf("patch did not produce expected sha1\n");
1010 // Give the .patch file the same owner, group, and mode of the
1022 // Finally, rename the .patch file to replace the target file.
1024 printf("rename of .patch to \"%s\" failed: %s\n",