commit.c: make "tree" a const pointer in commit_tree*()