summaryrefslogtreecommitdiff
path: root/git.c
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2021-06-25 22:16:17 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2021-06-25 22:16:17 -0400
commitabba51f80a0c86684d4e7baf30b16c80fe0820ef (patch)
tree166c5d257a61c37a0d5e3dce2b69bd8f098a6069 /git.c
parent4202b28b518553b31fed6e8630dd4f05d4e17ecb (diff)
Added some more log messages in
`create_pull_request_dir()`.
Diffstat (limited to 'git.c')
-rw-r--r--git.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/git.c b/git.c
index 1f8eefc..9632d21 100644
--- a/git.c
+++ b/git.c
@@ -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;
}
}