diff options
author | nulltoken <emeric.fermas@gmail.com> | 2013-11-15 15:36:37 +0000 |
---|---|---|
committer | Carlos MartÃn Nieto <cmn@dwim.me> | 2014-04-30 11:45:49 +0200 |
commit | 40e48ea40f5dfe0fbf786efc89d4cf297f4525e1 (patch) | |
tree | 616c1173448659d160f8b46a736eafb3db9a7333 /include/git2 | |
parent | 48ebea662a33a3b918143c014dde88e58e6d0a75 (diff) | |
download | libgit2-40e48ea40f5dfe0fbf786efc89d4cf297f4525e1.tar.gz |
remote: Introduce git_remote_delete()
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 11e1e26d0..62608358d 100644 --- a/include/git2/remote.h +++ b/include/git2/remote.h @@ -611,6 +611,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 |