summaryrefslogtreecommitdiffstats
path: root/subsurface-core
diff options
context:
space:
mode:
Diffstat (limited to 'subsurface-core')
-rw-r--r--subsurface-core/git-access.c6
-rw-r--r--subsurface-core/git-access.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/subsurface-core/git-access.c b/subsurface-core/git-access.c
index 4213d18f0..36413a55c 100644
--- a/subsurface-core/git-access.c
+++ b/subsurface-core/git-access.c
@@ -22,9 +22,9 @@
bool is_subsurface_cloud = false;
-int (*update_progress_cb)(int) = NULL;
+int (*update_progress_cb)(int, const char *) = NULL;
-void set_git_update_cb(int(*cb)(int))
+void set_git_update_cb(int(*cb)(int, const char *))
{
update_progress_cb = cb;
}
@@ -34,7 +34,7 @@ static int update_progress(int percent)
static int last_percent = -10;
int ret = 0;
if (update_progress_cb)
- ret = (*update_progress_cb)(percent);
+ ret = (*update_progress_cb)(percent, "");
if (verbose && percent - 10 >= last_percent) {
last_percent = percent;
fprintf(stderr, "git progress %d%%\n", percent);
diff --git a/subsurface-core/git-access.h b/subsurface-core/git-access.h
index 7e57351fb..272ec116e 100644
--- a/subsurface-core/git-access.h
+++ b/subsurface-core/git-access.h
@@ -23,7 +23,7 @@ extern int do_git_save(git_repository *repo, const char *branch, const char *rem
extern const char *saved_git_id;
extern void clear_git_id(void);
extern void set_git_id(const struct git_oid *);
-void set_git_update_cb(int(*cb)(int));
+void set_git_update_cb(int (*)(int, const char *));
char *get_local_dir(const char *remote, const char *branch);
#ifdef __cplusplus
}