summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorVicent Martí <tanoku@gmail.com>2012-02-26 10:45:23 -0800
committerVicent Martí <tanoku@gmail.com>2012-02-26 10:45:23 -0800
commite07c2d225deec42e592133df49ad8c564d4d66c7 (patch)
tree5c65164a5974f11de34b1f6eeb050ef1b3ac2bc3 /include
parent6b63589e3512cb8ad895dcac8482850c2f256f29 (diff)
parent8171998f8d90574ecf36016192b6426ed74751f6 (diff)
downloadlibgit2-e07c2d225deec42e592133df49ad8c564d4d66c7.tar.gz
Merge pull request #574 from carlosmn/remotes
Add git_remote_list()
Diffstat (limited to 'include')
-rw-r--r--include/git2/remote.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/git2/remote.h b/include/git2/remote.h
index 9339434e..e6537ec5 100644
--- a/include/git2/remote.h
+++ b/include/git2/remote.h
@@ -197,6 +197,17 @@ GIT_EXTERN(int) git_remote_update_tips(git_remote *remote);
*/
GIT_EXTERN(int) git_remote_valid_url(const char *url);
+/**
+ * Get a list of the configured remotes for a repo
+ *
+ * The string array must be freed by the user.
+ *
+ * @param remotes_list a string array with the names of the remotes
+ * @param repo the repository to query
+ * @return GIT_SUCCESS or an error code
+ */
+GIT_EXTERN(int) git_remote_list(git_strarray *remotes_list, git_repository *repo);
+
/** @} */
GIT_END_DECL
#endif