I am not sure why this is not set already? To me it is an annoyance that I have to set it manually and then git shows me a change for that file all the time while working.