summaryrefslogtreecommitdiff
path: root/include/git2/remote.h
diff options
context:
space:
mode:
authorBen Straub <bs@github.com>2012-12-12 12:15:25 -0800
committerBen Straub <bs@github.com>2012-12-12 12:15:25 -0800
commita71c27ccda7f7118ac2c50789fc1407d4d940b98 (patch)
tree45853babf6545972fd90f3648eb369b18a095cde /include/git2/remote.h
parent6cacd44bd036e9987134a4f43fee33dc1acb447b (diff)
downloadlibgit2-a71c27ccda7f7118ac2c50789fc1407d4d940b98.tar.gz
Allow creation of dangling remotes
Diffstat (limited to 'include/git2/remote.h')
-rw-r--r--include/git2/remote.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/git2/remote.h b/include/git2/remote.h
index 82aff385d..153bd1e42 100644
--- a/include/git2/remote.h
+++ b/include/git2/remote.h
@@ -43,10 +43,10 @@ typedef int (*git_remote_rename_problem_cb)(const char *problematic_refspec, voi
* See `git_tag_create()` for rules about valid names.
*
* @param out pointer to the new remote object
- * @param repo the associated repository
- * @param name the optional remote's name
+ * @param repo the associated repository. May be NULL for a "dangling" remote.
+ * @param name the optional remote's name. May be NULL.
* @param url the remote repository's URL
- * @param fetch the fetch refspec to use for this remote
+ * @param fetch the fetch refspec to use for this remote. May be NULL for defaults.
* @return 0, GIT_EINVALIDSPEC or an error code
*/
GIT_EXTERN(int) git_remote_new(git_remote **out, git_repository *repo, const char *name, const char *url, const char *fetch);