summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2015-05-14 09:35:08 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2015-05-17 15:45:37 +0200
commit70f7484d2ae7ed4b5c4d074aa5e9f99ebeebdd77 (patch)
tree0098c6694312776cfea0ba73ee3243ae3c634718 /include
parent7b5ce2e5c43db345590c8702b669325df59c8524 (diff)
downloadlibgit2-70f7484d2ae7ed4b5c4d074aa5e9f99ebeebdd77.tar.gz
remote: get rid of the run-time refspec setters
These were left over from the culling as it's not clear which use-cases might benefit from this. It is not clear that we want to support any use-case which depends on changing the remote's idea of the base refspecs rather than passing in different per-operation refspec list, so remove these functions.
Diffstat (limited to 'include')
-rw-r--r--include/git2/remote.h20
1 files changed, 0 insertions, 20 deletions
diff --git a/include/git2/remote.h b/include/git2/remote.h
index ab14ad4dc..36e9deb90 100644
--- a/include/git2/remote.h
+++ b/include/git2/remote.h
@@ -190,16 +190,6 @@ GIT_EXTERN(int) git_remote_add_fetch(git_repository *repo, const char *remote, c
GIT_EXTERN(int) git_remote_get_fetch_refspecs(git_strarray *array, const git_remote *remote);
/**
- * Set the remote's list of fetch refspecs
- *
- * The contents of the string array are copied.
- *
- * @param remote the remote to modify
- * @param array the new list of fetch resfpecs
- */
-GIT_EXTERN(int) git_remote_set_fetch_refspecs(git_remote *remote, git_strarray *array);
-
-/**
* Add a push refspec to the remote's configuration
*
* Add the given refspec to the push list in the configuration. No
@@ -224,16 +214,6 @@ GIT_EXTERN(int) git_remote_add_push(git_repository *repo, const char *remote, co
GIT_EXTERN(int) git_remote_get_push_refspecs(git_strarray *array, const git_remote *remote);
/**
- * Set the remote's list of push refspecs
- *
- * The contents of the string array are copied.
- *
- * @param remote the remote to modify
- * @param array the new list of push resfpecs
- */
-GIT_EXTERN(int) git_remote_set_push_refspecs(git_remote *remote, git_strarray *array);
-
-/**
* Get the number of refspecs for a remote
*
* @param remote the remote