diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2019-01-23 00:07:40 +0000 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2019-01-25 09:06:50 +0000 |
commit | a7d0d14fb03243f571b801804d1b5ac9a2aee725 (patch) | |
tree | f786e9f6c245ad75baf3928c92c55ef6a939fa35 /include/git2/refs.h | |
parent | 1c3daccf1adffe03efc3e2edab677febbaabda25 (diff) | |
download | libgit2-a7d0d14fb03243f571b801804d1b5ac9a2aee725.tar.gz |
deprecation: move deprecated bits to deprecated.h
Diffstat (limited to 'include/git2/refs.h')
-rw-r--r-- | include/git2/refs.h | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/include/git2/refs.h b/include/git2/refs.h index c11947b4a..8eeab7e92 100644 --- a/include/git2/refs.h +++ b/include/git2/refs.h @@ -21,12 +21,6 @@ */ GIT_BEGIN_DECL -/** @name Reference Functions - * - * These functions read, write and analyze references. - */ -/**@{*/ - /** * Lookup a reference by name in a repository. * @@ -749,35 +743,6 @@ GIT_EXTERN(int) git_reference_is_valid_name(const char *refname); */ GIT_EXTERN(const char *) git_reference_shorthand(const git_reference *ref); -/**@}*/ - -/** @name Deprecated Reference Constants - * - * These enumeration values are retained for backward compatibility. The - * newer versions of these functions should be preferred in all new code. - */ -/**@{*/ - - /** Basic type of any Git reference. */ -#define git_ref_t git_reference_t -#define git_reference_normalize_t git_reference_format_t - -GIT_DEPRECATED(static const git_ref_t) GIT_REF_INVALID = GIT_REFERENCE_INVALID; -GIT_DEPRECATED(static const git_ref_t) GIT_REF_OID = GIT_REFERENCE_DIRECT; -GIT_DEPRECATED(static const git_ref_t) GIT_REF_SYMBOLIC = GIT_REFERENCE_SYMBOLIC; -GIT_DEPRECATED(static const git_ref_t) GIT_REF_LISTALL = GIT_REFERENCE_ALL; - -GIT_DEPRECATED(static const git_reference_normalize_t) GIT_REF_FORMAT_NORMAL = - GIT_REFERENCE_FORMAT_NORMAL; -GIT_DEPRECATED(static const git_reference_normalize_t) GIT_REF_FORMAT_ALLOW_ONELEVEL = - GIT_REFERENCE_FORMAT_ALLOW_ONELEVEL; -GIT_DEPRECATED(static const git_reference_normalize_t) GIT_REF_FORMAT_REFSPEC_PATTERN = - GIT_REFERENCE_FORMAT_REFSPEC_PATTERN; -GIT_DEPRECATED(static const git_reference_normalize_t) GIT_REF_FORMAT_REFSPEC_SHORTHAND = - GIT_REFERENCE_FORMAT_REFSPEC_SHORTHAND; - -/**@}*/ - /** @} */ GIT_END_DECL #endif |