refactor(tree): removed everything relating to tree diffs
This commit is contained in:
parent
d07c67c35e
commit
afbcd5d338
5 changed files with 22 additions and 337 deletions
|
|
@ -571,7 +571,7 @@ static int commit(int argc, char** argv) {
|
|||
continue;
|
||||
}
|
||||
else {
|
||||
save_diff(diff, files->items[idx], root, base_file->diff_num, base_file_hash, NULL, 0);
|
||||
save_diff(diff, files->items[idx], root, base_file->diff_num, base_file_hash);
|
||||
|
||||
char diff_hash[41];
|
||||
char id[2 + snprintf(NULL, 0, "%lu", base_file->diff_num) + strlen(files->items[idx])];
|
||||
|
|
@ -608,7 +608,6 @@ static int commit(int argc, char** argv) {
|
|||
printf("%s: %s\n", ((FileInfo*)tree->items + idx)->name, ((FileInfo*)tree->items + idx)->hash);
|
||||
}
|
||||
|
||||
|
||||
char tree_hash[41];
|
||||
snapshot_tree(tree, tree_hash);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue