diff options
author | Carlos Martín Nieto <carlos@cmartin.tk> | 2011-08-06 13:48:52 +0200 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2011-08-18 02:34:08 +0200 |
commit | 441f57c2b7fe414ed50b2d13979795a69bd7bd59 (patch) | |
tree | 69ae8ac851a9dd03f7847b0cf8ec88ad5b794534 /include/git2/remote.h | |
parent | c1af5a3935025f486156cdfe3b006700e73f0a49 (diff) | |
download | libgit2-441f57c2b7fe414ed50b2d13979795a69bd7bd59.tar.gz |
Add git_remote_update_tips
This function updates the references in the local reference storage to
match the ones in the remote.
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
Diffstat (limited to 'include/git2/remote.h')
-rw-r--r-- | include/git2/remote.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/git2/remote.h b/include/git2/remote.h index 74b0a05c6..a634b49c2 100644 --- a/include/git2/remote.h +++ b/include/git2/remote.h @@ -141,6 +141,16 @@ GIT_EXTERN(int) git_remote_download(char **filename, git_remote *remote); */ GIT_EXTERN(void) git_remote_free(struct git_remote *remote); +/** + * Update the tips to the new state + * + * Make sure that you only call this once you've successfully indexed + * or expanded the packfile. + * + * @param remote the remote to update + */ +GIT_EXTERN(int) git_remote_update_tips(struct git_remote *remote); + /** @} */ GIT_END_DECL #endif |