When deciding if a file should be committed or not, also check to see if the file has been committed before.