diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2021-06-25 22:16:17 -0400 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2021-06-25 22:16:17 -0400 |
commit | abba51f80a0c86684d4e7baf30b16c80fe0820ef (patch) | |
tree | 166c5d257a61c37a0d5e3dce2b69bd8f098a6069 /git.c | |
parent | 4202b28b518553b31fed6e8630dd4f05d4e17ecb (diff) |
Added some more log messages in
`create_pull_request_dir()`.
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; } } |