Repo init

This commit is contained in:
Antonin Ruan
2024-05-30 12:50:59 +02:00
parent d20d295817
commit 0bdc0b150d
3 changed files with 43 additions and 24 deletions

View File

@@ -6,32 +6,11 @@
#include <stdio.h>
#include "commit.h"
#include "fs.h"
int main(int argc, char** argv) {
// struct object obj = {0};
// obj.content = "Hello, world!\n";
// obj.size = strlen(obj.content);
// obj.object_type = "blob";
// return write_object(&obj);
// read_object("af5626b4a114abcb82d63db7c8082c3c4756e51b", &obj);
// debug_print("Object type is \"%s\"", obj.object_type);
// debug_print("Content size is %li", obj.size);
// debug_print("Content is %.*s", (int)obj.size, obj.content);
// free_object(&obj);
// add_to_index(&index, "src/fs.c");
// add_to_index(&index, "src/test/foo");
// add_to_index(&index, ".gitignore");
// add_to_index(&index, "src/fs.h");
// dump_index(&tree);
commit();
return 0;
}