summaryrefslogtreecommitdiff
path: root/include/git2/remote.h
diff options
context:
space:
mode:
authorCarlos Martín Nieto <carlos@cmartin.tk>2012-02-20 19:04:45 +0100
committerCarlos Martín Nieto <carlos@cmartin.tk>2012-02-20 19:48:41 +0100
commit89e5ed98dcdcb00de8a2758c6f7616ac7ab78837 (patch)
tree9614e75d3c83e7fb68e16f3e3e1258236c6ed3ad /include/git2/remote.h
parentbcb8c007f149da6d31a6c17c179f6f89ce823d2e (diff)
downloadlibgit2-89e5ed98dcdcb00de8a2758c6f7616ac7ab78837.tar.gz
Add git_remote_save()
Diffstat (limited to 'include/git2/remote.h')
-rw-r--r--include/git2/remote.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/git2/remote.h b/include/git2/remote.h
index 9d677aae7..9339434e5 100644
--- a/include/git2/remote.h
+++ b/include/git2/remote.h
@@ -54,6 +54,14 @@ GIT_EXTERN(int) git_remote_new(git_remote **out, git_repository *repo, const cha
GIT_EXTERN(int) git_remote_load(git_remote **out, git_repository *repo, const char *name);
/**
+ * Save a remote to its repository's configuration
+ *
+ * @param remote the remote to save to config
+ * @return GIT_SUCCESS or an error code
+ */
+GIT_EXTERN(int) git_remote_save(const git_remote *remote);
+
+/**
* Get the remote's name
*
* @param remote the remote