diff options
Diffstat (limited to 'git.c')
-rw-r--r-- | git.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -156,16 +156,19 @@ int create_pull_request_dir(pull_request *pr, int id, const char *root) { if (access(commits[i]->name, F_OK) == 0) { long size = 0; char *buf = read_file(commits[i]->name, &size); + log(LOG_NOTICE, "Patch file %s already exists.", commits[i]->name); /* Did we read the file? */ if (buf != NULL) { /* Are the contents of the patch file the same? */ if (strcmp(commits[i]->buf, buf) == 0) { /* Skip creating this patch file. */ + log(LOG_NOTICE, "Patch file %s is the same as the new one.", commits[i]->name); free(buf); continue; } free(buf); } else { + log(LOG_WARNING, "Couldn't open patch file %s.", commits[i]->name); continue; } } |