From 17e80802a771d0a6c74583cea45e835c60bf5381 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 14 Sep 2025 18:25:28 +0800 Subject: [PATCH] Document OBJ_* --- git/object.ha | 12 ++++++++++++ diff --git a/git/object.ha b/git/object.ha index e909627e589c3f8906fc0de1ee58f08a407e4903..d2b9d5e7fc7ab56149a733fa78762fba93eabd5c 100644 --- a/git/object.ha +++ b/git/object.ha @@ -12,11 +12,23 @@ // Any Git object. [[tag]] will be supported in the future. export type object = (blob | tree | commit); // TODO: These should be enums instead of u8 constants. + +// The tag for a commit object. export def OBJ_COMMIT: u8 = 1u8; + +// The tag for a tree object. export def OBJ_TREE: u8 = 2u8; + +// The tag for a blob object. export def OBJ_BLOB: u8 = 3u8; + +// The tag for a tag object. export def OBJ_TAG: u8 = 4u8; + +// The tag for an offset delta object in packfiles. export def OBJ_OFS_DELTA: u8 = 6u8; + +// The tag for a reference delta object in packfiles. export def OBJ_REF_DELTA: u8 = 7u8; // Frees resources associated with any Git object. -- 2.48.1