tree: Return "commit" as tree entry type