change -> mod
rm -> del
add diff_tree_index
move cache_entry declaration in front of while loop
add diff_tree_index_index