summaryrefslogtreecommitdiff
path: root/src/object.rs
diff options
context:
space:
mode:
authorRosyid Haryadi <rosyid_haryadi@protonmail.com>2025-03-16 02:34:56 +0700
committerRosyid Haryadi <rosyid_haryadi@protonmail.com>2025-03-16 02:34:56 +0700
commit3e8903a54667f24dd8e7f1b74d97ee772c032e64 (patch)
tree6206852a6d8f89e114ff294ab5252273ebee358e /src/object.rs
parent63fe218d4ea0d52f92af4bde33d96ba3804b50aa (diff)
upd: git object & refactor: core -> repository
Diffstat (limited to 'src/object.rs')
-rw-r--r--src/object.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/object.rs b/src/object.rs
new file mode 100644
index 0000000..6374911
--- /dev/null
+++ b/src/object.rs
@@ -0,0 +1,12 @@
+enum GitObjectType {
+ Blob,
+ Commit,
+ Tag,
+ Tree,
+}
+
+struct GitObject {
+ object_type: GitObjectType,
+ size: usize,
+ data: Vec<u8>,
+} \ No newline at end of file