read files before creating the commit.