summaryrefslogtreecommitdiff
path: root/include/git2/remote.h
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2014-12-30 11:53:55 -0600
committerEdward Thomson <ethomson@edwardthomson.com>2014-12-30 11:53:55 -0600
commita3ef70bb405a05c16fb533d828da2510ff751224 (patch)
tree2f9d31f93a5f873620e37f59c737e56155d056d9 /include/git2/remote.h
parentc4c47fc2861935d8e373319c0734ea7b2ce34a73 (diff)
parent8aba3d47cf96e24e02601175f900f0e851077c1a (diff)
downloadlibgit2-a3ef70bb405a05c16fb533d828da2510ff751224.tar.gz
Merge pull request #2761 from libgit2/cmn/fetch-prune
Remote-tracking branch prunning
Diffstat (limited to 'include/git2/remote.h')
-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