Skip to content

Commit 26b21b3

Browse files
committed
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.
1 parent 7e7859a commit 26b21b3

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

include/git2/types.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,10 @@ typedef int64_t git_time_t;
7070
typedef enum {
7171
GIT_OBJECT_ANY = -2, /**< Object can be any of the following */
7272
GIT_OBJECT_BAD = -1, /**< Object is invalid. */
73-
GIT_OBJECT__EXT1 = 0, /**< Reserved. */
7473
GIT_OBJECT_COMMIT = 1, /**< A commit object. */
7574
GIT_OBJECT_TREE = 2, /**< A tree (directory listing) object. */
7675
GIT_OBJECT_BLOB = 3, /**< A file revision object. */
7776
GIT_OBJECT_TAG = 4, /**< An annotated tag object. */
78-
GIT_OBJECT__EXT2 = 5, /**< Reserved. */
7977
GIT_OBJECT_OFS_DELTA = 6, /**< A delta, base is given by an offset. */
8078
GIT_OBJECT_REF_DELTA = 7, /**< A delta, base is given by object id. */
8179
} git_object_t;

0 commit comments

Comments
 (0)