In my repos I'm implementing a new interesting strategy to preserve some versioned files from merges, that makes use of custom merge drivers and .gitattributes. Please take a look:http://git-scm.com/book/en/v2/Customizing-Git-Git-Attributes#Merge-StrategiesI noticed though, that if I apply it to files already tracked in repo/branches, it doesn't work. To make it work, I have to either define the paths in .gitattributes before adding the files to the repo/branch, or delete the files and add them again.Not a big problem, but I'm quite curious of the reason of this behavior. Does anyone know?
Why is .gitattributes applied only to files added to repo after defining it?
git;merge