summaryrefslogtreecommitdiff
path: root/include/git2/remote.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/git2/remote.h')
-rw-r--r--include/git2/remote.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/git2/remote.h b/include/git2/remote.h
index a634b49c2..651e41075 100644
--- a/include/git2/remote.h
+++ b/include/git2/remote.h
@@ -46,6 +46,18 @@ GIT_BEGIN_DECL
*/
/**
+ * Create a new unnamed remote
+ *
+ * Useful when you don't want to store the remote
+ *
+ * @param out pointer to the new remote object
+ * @param repo the associtated repository
+ * @param url the remote repository's URL
+ * @return GIT_SUCCESS or an error message
+ */
+int git_remote_new(git_remote **out, git_repository *repo, const char *url);
+
+/**
* Get the information for a particular remote
*
* @param out pointer to the new remote object