Fixed the model to disallow a file being staged when it belongs to the latest commit with the same content