commit file type judge.