Change the attributes of a tree entry.
This will mark the tree that contains the entry as modified; the modified entry will be written back to disk on the next git_object_write()
Entry object which will be modified
0 if the attributes were properly set; error code otherwise