diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2014-03-26 11:15:57 +0100 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2014-04-01 13:38:04 +0200 |
commit | fd536d29c127648abb2ce5f6f619135ce69b9800 (patch) | |
tree | 8113aac1ee75b94d8637ca8519a456b54c826900 /include/git2 | |
parent | 77b699e0da3d4a4fed742893bd172f3ee7b936d5 (diff) | |
download | libgit2-fd536d29c127648abb2ce5f6f619135ce69b9800.tar.gz |
remote: rename inmemory to anonymous and swap url and fetch order
The order in this function is the opposite to what
create_with_fetchspec() has, so change this one, as url-then-refspec is
what git does.
As we need to break compilation and the swap doesn't do that, let's take
this opportunity to rename in-memory remotes to anonymous as that's
really what sets them apart.
Diffstat (limited to 'include/git2')
-rw-r--r-- | include/git2/remote.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/git2/remote.h b/include/git2/remote.h index 82a46acd1..d57321f03 100644 --- a/include/git2/remote.h +++ b/include/git2/remote.h @@ -62,10 +62,10 @@ GIT_EXTERN(int) git_remote_create_with_fetchspec( const char *fetch); /** - * Create a remote in memory + * Create an anonymous remote * - * Create a remote with the given refspec in memory. You can use - * this when you have a URL instead of a remote's name. Note that in-memory + * Create a remote with the given url and refspec in memory. You can use + * this when you have a URL instead of a remote's name. Note that anonymous * remotes cannot be converted to persisted remotes. * * The name, when provided, will be checked for validity. @@ -73,15 +73,15 @@ GIT_EXTERN(int) git_remote_create_with_fetchspec( * * @param out pointer to the new remote object * @param repo the associated repository - * @param fetch the fetch refspec to use for this remote. * @param url the remote repository's URL + * @param fetch the fetch refspec to use for this remote. * @return 0 or an error code */ -GIT_EXTERN(int) git_remote_create_inmemory( +GIT_EXTERN(int) git_remote_create_anonymous( git_remote **out, git_repository *repo, - const char *fetch, - const char *url); + const char *url, + const char *fetch); /** * Get the information for a particular remote |