Basic object manipulation

This commit is contained in:
womax
2024-05-28 20:08:41 +02:00
commit 70644cf67e
8 changed files with 357 additions and 0 deletions

11
src/fs.h Normal file
View File

@@ -0,0 +1,11 @@
#ifndef FS_H
#define FS_H 1
#define LOCAL_REPO ".cgit"
#define DEFAULT_DIR_MODE 0755
#define DEFAULT_FILE_MODE 0444
int write_object(struct object *obj);
int read_object(char *checksum, struct object *obj);
#endif // FS_H