diff options
Diffstat (limited to 'include/git2')
-rw-r--r-- | include/git2/remote.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/git2/remote.h b/include/git2/remote.h index 3633501e2..07cd2e7c6 100644 --- a/include/git2/remote.h +++ b/include/git2/remote.h @@ -610,6 +610,19 @@ GIT_EXTERN(void) git_remote_set_update_fetchhead(git_remote *remote, int value); */ GIT_EXTERN(int) git_remote_is_valid_name(const char *remote_name); +/** +* Delete an existing persisted remote. +* +* All remote-tracking branches and configuration settings +* for the remote will be removed. +* +* once deleted, the passed remote object will be freed and invalidated. +* +* @param remote A valid remote +* @return 0 on success, or an error code. +*/ +GIT_EXTERN(int) git_remote_delete(git_remote *remote); + /** @} */ GIT_END_DECL #endif |