mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 02:07:39 +08:00
git rm: Add some more logs
This commit is contained in:
@ -78,7 +78,7 @@ int match_cb(const char *path, const char *spec, void *payload)
|
|||||||
UNUSED(spec);
|
UNUSED(spec);
|
||||||
UNUSED(payload);
|
UNUSED(payload);
|
||||||
|
|
||||||
gj_log_internal("Match: %s\n", path);
|
gj_log_internal("Add Match: %s\n", path);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -132,6 +132,7 @@ int rm_match_cb(const char *path, const char *spec, void *payload)
|
|||||||
strcat(full_path, "/"); // FIXME: Will not work on windows!
|
strcat(full_path, "/"); // FIXME: Will not work on windows!
|
||||||
strcat(full_path, path);
|
strcat(full_path, path);
|
||||||
|
|
||||||
|
gj_log_internal("Removing File: %s\n", full_path);
|
||||||
int err = remove(full_path);
|
int err = remove(full_path);
|
||||||
if (err != 0)
|
if (err != 0)
|
||||||
{
|
{
|
||||||
@ -503,8 +504,6 @@ int gj_git_pull(const char *git_base_path, const char *author_name, const char *
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
// FIXME: Do not make a merge commit when not required!
|
|
||||||
|
|
||||||
err = git_remote_lookup(&remote, repo, "origin");
|
err = git_remote_lookup(&remote, repo, "origin");
|
||||||
if (err < 0)
|
if (err < 0)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
Reference in New Issue
Block a user