commit with an edit in a file