summaryrefslogtreecommitdiff
path: root/include/git2/remote.h
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2014-10-10 12:21:28 -0400
committerEdward Thomson <ethomson@edwardthomson.com>2014-10-10 12:21:28 -0400
commita6ed1fcbe1dbd78dbfd83da3dcff12ed37134e96 (patch)
tree3d964f1f0419a3757d753c88a5f0e338e39e8b4d /include/git2/remote.h
parentbab92a8dcf66d93afb41c946c238841df74fff0e (diff)
parent262eec23fe7377a9eecf9e724fa1aba945b3162a (diff)
downloadlibgit2-a6ed1fcbe1dbd78dbfd83da3dcff12ed37134e96.tar.gz
Merge pull request #2593 from libgit2/cmn/remote-delete-name
remote: accept a repository and remote name for deletion
Diffstat (limited to 'include/git2/remote.h')
-rw-r--r--include/git2/remote.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/git2/remote.h b/include/git2/remote.h
index 422c93d38..977e9b809 100644
--- a/include/git2/remote.h
+++ b/include/git2/remote.h
@@ -602,10 +602,11 @@ GIT_EXTERN(int) git_remote_is_valid_name(const char *remote_name);
* All remote-tracking branches and configuration settings
* for the remote will be removed.
*
-* @param remote A valid remote
+* @param repo the repository in which to act
+* @param name the name of the remove to delete
* @return 0 on success, or an error code.
*/
-GIT_EXTERN(int) git_remote_delete(git_remote *remote);
+GIT_EXTERN(int) git_remote_delete(git_repository *repo, const char *name);
/**
* Retrieve the name of the remote's default branch