Creation of new branch, starting to work on revert
This commit is contained in:
18
src/main.c
18
src/main.c
@@ -17,21 +17,9 @@
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
struct object a = {0}, b = {0};
|
||||
read_object("5568f9722af893d2e6214617eefb62f40c9f8c69", &a);
|
||||
read_object("4640f65f9340784086a5ddee4e1a46cdc3274424", &b);
|
||||
|
||||
struct commit c_a = {0}, c_b = {0};
|
||||
commit_from_object(&c_a, &a);
|
||||
commit_from_object(&c_b, &b);
|
||||
|
||||
diff_commit(&c_a, &c_b);
|
||||
|
||||
free_commit(&c_a);
|
||||
free_commit(&c_b);
|
||||
free_object(&a);
|
||||
free_object(&b);
|
||||
|
||||
// debug_print("master: %i", branch_exist("master"));
|
||||
// debug_print("main: %i", branch_exist("main"));
|
||||
// struct tree index = {0};
|
||||
// load_index(&index);
|
||||
|
||||
@@ -42,5 +30,7 @@ int main(int argc, char** argv)
|
||||
|
||||
// commit();
|
||||
|
||||
new_branch("new_feature");
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user