summaryrefslogtreecommitdiff
path: root/include/git2
diff options
context:
space:
mode:
Diffstat (limited to 'include/git2')
-rw-r--r--include/git2/remote.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/git2/remote.h b/include/git2/remote.h
index 452e556dd..2bfc35f4b 100644
--- a/include/git2/remote.h
+++ b/include/git2/remote.h
@@ -388,6 +388,14 @@ GIT_EXTERN(int) git_remote_update_tips(
const char *reflog_message);
/**
+ * Prune tracking refs that are no longer present on remote
+ *
+ * @param remote the remote to prune
+ * @return 0 or an error code
+ */
+GIT_EXTERN(int) git_remote_prune(git_remote *remote);
+
+/**
* Download new data and update tips
*
* Convenience function to connect to a remote, download the data,
@@ -598,6 +606,14 @@ GIT_EXTERN(void) git_remote_set_autotag(
git_remote_autotag_option_t value);
/**
+ * Retrieve the ref-prune setting
+ *
+ * @param remote the remote to query
+ * @return the ref-prune setting
+ */
+GIT_EXTERN(int) git_remote_prune_refs(const git_remote *remote);
+
+/**
* Give the remote a new name
*
* All remote-tracking branches and configuration settings