summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2023-05-10 22:50:16 +0100
committerEdward Thomson <ethomson@edwardthomson.com>2023-05-11 13:30:08 +0100
commit0e7ab1c4968629b8d42c193eebda48ef146d8e77 (patch)
treeff246ac9ddc5bef47d25a9d5b5da2e9402f02d64 /include
parent2bbcdee6b666f34e83d1cf9ca9badc66258202d6 (diff)
downloadlibgit2-0e7ab1c4968629b8d42c193eebda48ef146d8e77.tar.gz
remote: add git_refspec to update_tipsethomson/update_tips_spec
Diffstat (limited to 'include')
-rw-r--r--include/git2/remote.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/git2/remote.h b/include/git2/remote.h
index e9065b250..d1e41ff4d 100644
--- a/include/git2/remote.h
+++ b/include/git2/remote.h
@@ -557,7 +557,8 @@ struct git_remote_callbacks {
* Completion is called when different parts of the download
* process are done (currently unused).
*/
- int GIT_CALLBACK(completion)(git_remote_completion_t type, void *data);
+ int GIT_CALLBACK(completion)(git_remote_completion_t type,
+ void *data);
/**
* This will be called if the remote host requires
@@ -587,7 +588,9 @@ struct git_remote_callbacks {
* Each time a reference is updated locally, this function
* will be called with information about it.
*/
- int GIT_CALLBACK(update_tips)(const char *refname, const git_oid *a, const git_oid *b, void *data);
+ int GIT_CALLBACK(update_tips)(const char *refname,
+ const git_oid *a, const git_oid *b, git_refspec *spec,
+ void *data);
/**
* Function to call with progress information during pack