From 65a617f0d2910604754bd36683b498f4d612b089 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Tue, 11 Mar 2025 11:30:12 +0800 Subject: [PATCH] Add object_t --- libgit2/types.ha | 9 +++++++++ diff --git a/libgit2/types.ha b/libgit2/types.ha new file mode 100644 index 0000000000000000000000000000000000000000..252f95a2dba1fedbcfbcfe6eda3f42224d9c6fce --- /dev/null +++ b/libgit2/types.ha @@ -0,0 +1,9 @@ +// Basic type (loose or packed) of any Git object. +export type object_t = enum { + OBJECT_ANY = -2, // Object can be any of the following + OBJECT_INVALID = -1, // Object is invalid. + OBJECT_COMMIT = 1, // A commit object. + OBJECT_TREE = 2, // A tree (directory listing) object. + OBJECT_BLOB = 3, // A file revision object. + OBJECT_TAG = 4, // An annotated tag object. +}; -- 2.48.1