diff options
| author | Vicent Martà <vicent@github.com> | 2012-10-01 08:28:46 -0700 |
|---|---|---|
| committer | Vicent Martà <vicent@github.com> | 2012-10-01 08:28:46 -0700 |
| commit | bdaa40d3da5f57be275b2f1ba8d04253a2fcaea7 (patch) | |
| tree | 2a07a140b7e6352ab6f97d5ca382eafd4ed96dcd /include | |
| parent | 2af1c266415bd2030cdfef8ec170a6c135e12b75 (diff) | |
| parent | 3230a44f4c951cbaeadfa5ae111f6558298dfc61 (diff) | |
| download | libgit2-bdaa40d3da5f57be275b2f1ba8d04253a2fcaea7.tar.gz | |
Merge pull request #957 from carlosmn/include-tag
Include tag
Diffstat (limited to 'include')
| -rw-r--r-- | include/git2/refspec.h | 8 | ||||
| -rw-r--r-- | include/git2/remote.h | 24 |
2 files changed, 24 insertions, 8 deletions
diff --git a/include/git2/refspec.h b/include/git2/refspec.h index 9e84aad99..1100e9022 100644 --- a/include/git2/refspec.h +++ b/include/git2/refspec.h @@ -20,14 +20,6 @@ GIT_BEGIN_DECL /** - * Parse a refspec string and create a refspec object - * - * @param refspec pointer to the refspec structure to be used - * @param str the refspec as a string - */ -GIT_EXTERN(int) git_refspec_parse(git_refspec *refspec, const char *str); - -/** * Get the source specifier * * @param refspec the refspec diff --git a/include/git2/remote.h b/include/git2/remote.h index a3913af5b..c015289e8 100644 --- a/include/git2/remote.h +++ b/include/git2/remote.h @@ -304,6 +304,30 @@ struct git_remote_callbacks { */ GIT_EXTERN(void) git_remote_set_callbacks(git_remote *remote, git_remote_callbacks *callbacks); +enum { + GIT_REMOTE_DOWNLOAD_TAGS_UNSET, + GIT_REMOTE_DOWNLOAD_TAGS_NONE, + GIT_REMOTE_DOWNLOAD_TAGS_AUTO, + GIT_REMOTE_DOWNLOAD_TAGS_ALL +}; + +/** + * Retrieve the tag auto-follow setting + * + * @param remote the remote to query + * @return the auto-follow setting + */ +GIT_EXTERN(int) git_remote_autotag(git_remote *remote); + +/** + * Set the tag auto-follow setting + * + * @param remote the remote to configure + * @param value a GIT_REMOTE_DOWNLOAD_TAGS value + */ +GIT_EXTERN(void) git_remote_set_autotag(git_remote *remote, int value); + + /** @} */ GIT_END_DECL #endif |
