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 /src | |
| 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 'src')
| -rw-r--r-- | src/remote.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/remote.c b/src/remote.c index caefc686e..62ee90375 100644 --- a/src/remote.c +++ b/src/remote.c @@ -236,7 +236,7 @@ on_error: return -1; } -int git_remote_create_inmemory(git_remote **out, git_repository *repo, const char *fetch, const char *url) +int git_remote_create_anonymous(git_remote **out, git_repository *repo, const char *url, const char *fetch) { int error; git_remote *remote; @@ -502,7 +502,7 @@ int git_remote_save(const git_remote *remote) assert(remote); if (!remote->name) { - giterr_set(GITERR_INVALID, "Can't save an in-memory remote."); + giterr_set(GITERR_INVALID, "Can't save an anonymous remote."); return GIT_EINVALIDSPEC; } @@ -1433,7 +1433,7 @@ static int rename_fetch_refspecs( if (spec->push) continue; - /* Every refspec is a problem refspec for an in-memory remote, OR */ + /* Every refspec is a problem refspec for an anonymous remote, OR */ /* Does the dst part of the refspec follow the expected format? */ if (!remote->name || strcmp(git_buf_cstr(&base), spec->string)) { @@ -1481,7 +1481,7 @@ int git_remote_rename( assert(remote && new_name); if (!remote->name) { - giterr_set(GITERR_INVALID, "Can't rename an in-memory remote."); + giterr_set(GITERR_INVALID, "Can't rename an anonymous remote."); return GIT_EINVALIDSPEC; } |
