summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2018-11-14 22:48:10 +0000
committerEdward Thomson <ethomson@edwardthomson.com>2018-12-01 10:44:16 +0000
commit26b21b391235e708ae41751a5b8d2743af0194fb (patch)
treed42fa7aa31ef8d1ea50c459f482d3bcb32fcb950 /include
parent7e7859a15a65df17fc7e59d75492a5227402490f (diff)
downloadlibgit2-26b21b391235e708ae41751a5b8d2743af0194fb.tar.gz
object_type: remove unused object type flags
The two "reserved" bits in `git_object_t` are unused. They were included for completeness, but downstream users should never use them and they should not have been made public. These values are never set. With the refactoring of `git_otype` into `git_object_t`, we can remove these from the new API. They will remain in the old (deprecated) API in the unlikely event that someone was using them.
Diffstat (limited to 'include')
-rw-r--r--include/git2/types.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/git2/types.h b/include/git2/types.h
index 7d0734e07..2074ca934 100644
--- a/include/git2/types.h
+++ b/include/git2/types.h
@@ -70,12 +70,10 @@ typedef int64_t git_time_t;
typedef enum {
GIT_OBJECT_ANY = -2, /**< Object can be any of the following */
GIT_OBJECT_BAD = -1, /**< Object is invalid. */
- GIT_OBJECT__EXT1 = 0, /**< Reserved. */
GIT_OBJECT_COMMIT = 1, /**< A commit object. */
GIT_OBJECT_TREE = 2, /**< A tree (directory listing) object. */
GIT_OBJECT_BLOB = 3, /**< A file revision object. */
GIT_OBJECT_TAG = 4, /**< An annotated tag object. */
- GIT_OBJECT__EXT2 = 5, /**< Reserved. */
GIT_OBJECT_OFS_DELTA = 6, /**< A delta, base is given by an offset. */
GIT_OBJECT_REF_DELTA = 7, /**< A delta, base is given by object id. */
} git_object_t;