diff options
author | Arthur Schreiber <schreiber.arthur@googlemail.com> | 2014-01-14 21:03:01 +0100 |
---|---|---|
committer | Arthur Schreiber <schreiber.arthur@googlemail.com> | 2014-01-14 21:03:01 +0100 |
commit | 40ef47dd46fdd361b49ccc97605a93e0993e96db (patch) | |
tree | 77e51167172c5324a7dde1f5faf8e55be670be68 /include/git2/remote.h | |
parent | 557bd1f4108272c6db004aa8b7137d9254c14945 (diff) | |
download | libgit2-40ef47dd46fdd361b49ccc97605a93e0993e96db.tar.gz |
Add `git_remote_dup`.
Diffstat (limited to 'include/git2/remote.h')
-rw-r--r-- | include/git2/remote.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/git2/remote.h b/include/git2/remote.h index 7410909dc..d3e6caa48 100644 --- a/include/git2/remote.h +++ b/include/git2/remote.h @@ -108,6 +108,18 @@ GIT_EXTERN(int) git_remote_load(git_remote **out, git_repository *repo, const ch 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. + * + * Call `git_remote_free` to free the data. + * + * @param dest pointer where to store the copy + * @param source object to copy + * @return 0 or an error code + */ +GIT_EXTERN(int) git_remote_dup(git_remote **dest, const git_remote *source); + +/** * Get the remote's repository * * @param remote the remote |