diff options
| author | Carlos Martín Nieto <cmn@dwim.me> | 2015-04-23 06:55:29 +0200 |
|---|---|---|
| committer | Carlos Martín Nieto <cmn@dwim.me> | 2015-05-13 09:46:36 +0200 |
| commit | a4b6452a6a32ac94c5c616eb4cc9c691d954732e (patch) | |
| tree | fc746bdcdaafcff7639d09d211e75258495ae0b5 /include | |
| parent | 7725499072aaf4d9093c615fee5a65d8477100bc (diff) | |
| download | libgit2-a4b6452a6a32ac94c5c616eb4cc9c691d954732e.tar.gz | |
remote: remove git_remote_save()
It has now become a no-op, so remove the function and all references to
it.
Diffstat (limited to 'include')
| -rw-r--r-- | include/git2/remote.h | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/include/git2/remote.h b/include/git2/remote.h index 73440a966..ab14ad4dc 100644 --- a/include/git2/remote.h +++ b/include/git2/remote.h @@ -28,8 +28,7 @@ GIT_BEGIN_DECL typedef int (*git_remote_rename_problem_cb)(const char *problematic_refspec, void *payload); /** - * Add a remote with the default fetch refspec to the repository's configuration. This - * calls git_remote_save before returning. + * Add a remote with the default fetch refspec to the repository's configuration. * * @param out the resulting remote * @param repo the repository in which to create the remote @@ -45,8 +44,7 @@ GIT_EXTERN(int) git_remote_create( /** * Add a remote with the provided fetch refspec (or default if NULL) to the repository's - * configuration. This - * calls git_remote_save before returning. + * configuration. * * @param out the resulting remote * @param repo the repository in which to create the remote @@ -98,17 +96,6 @@ GIT_EXTERN(int) git_remote_create_anonymous( GIT_EXTERN(int) git_remote_lookup(git_remote **out, git_repository *repo, const char *name); /** - * Save a remote to its repository's configuration - * - * One can't save a in-memory remote. Doing so will - * result in a GIT_EINVALIDSPEC being returned. - * - * @param remote the remote to save to config - * @return 0, GIT_EINVALIDSPEC or an error code - */ -GIT_EXTERN(int) git_remote_save(const git_remote *remote); - -/** * Create a copy of an existing remote. All internal strings are also * duplicated. Callbacks are not duplicated. * |
