commit_tree: take a pointer/len pair rather than a const strbuf