Got a weird problem with undo in VS2015 when working in a Git repo. Change e.g. web.config and if I undo the change, the content is changed to the unmodified version. However the file still shows up as a changed file, even though there's no changes in the file.
Se screen cast: https://jnus.tinytake.com/sf/MTIwNjg0OF80NjMzMDc1
Using following config: .gitconfig
[core]
fscache = true
preloadindex = true
autocrlf = true
.gitattribute
* text=auto
Any idea why this is happening. I suspect line ending (currently using CRLF), but haven't been able to confirm this.
UPDATE: I've tried to normalize line endings, without any luck, with the following alias.
git rm --cached -r . && git reset --hard && git commit -a -m 'Normalize CRLF' -n
UPDATE 2: Seems to impact only XML based files like csproj, config etc.