Ensure file is not named 'index' file before DiffGitCached.