diff options
author | Ben Straub <bs@github.com> | 2012-12-20 10:51:09 -0800 |
---|---|---|
committer | Ben Straub <bs@github.com> | 2012-12-20 10:52:57 -0800 |
commit | 29f27599eab750d2b4b8935a14be8b596b7affe2 (patch) | |
tree | 7ee49c6386cc18d59969ab5d21805ed0624f9df0 /examples/network | |
parent | 316bca697f16e6fc0c9ecc943e84e9af3b39812b (diff) | |
download | libgit2-29f27599eab750d2b4b8935a14be8b596b7affe2.tar.gz |
Rename remote creation APIs
git_remote_add -> git_remote_create
git_remote_new -> git_remote_create_inmemory
Diffstat (limited to 'examples/network')
-rw-r--r-- | examples/network/fetch.c | 2 | ||||
-rw-r--r-- | examples/network/ls-remote.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/network/fetch.c b/examples/network/fetch.c index 8048fd67a..f81c4fafe 100644 --- a/examples/network/fetch.c +++ b/examples/network/fetch.c @@ -76,7 +76,7 @@ int fetch(git_repository *repo, int argc, char **argv) // Figure out whether it's a named remote or a URL printf("Fetching %s for repo %p\n", argv[1], repo); if (git_remote_load(&remote, repo, argv[1]) < 0) { - if (git_remote_new(&remote, repo, NULL, argv[1], NULL) < 0) + if (git_remote_create_inmemory(&remote, repo, NULL, argv[1], NULL) < 0) return -1; } diff --git a/examples/network/ls-remote.c b/examples/network/ls-remote.c index 62131d4ba..d3e3ed053 100644 --- a/examples/network/ls-remote.c +++ b/examples/network/ls-remote.c @@ -21,7 +21,7 @@ static int use_unnamed(git_repository *repo, const char *url) // Create an instance of a remote from the URL. The transport to use // is detected from the URL - error = git_remote_new(&remote, repo, NULL, url, NULL); + error = git_remote_create_inmemory(&remote, repo, NULL, url, NULL); if (error < 0) goto cleanup; |