I have a AssemblyInfo.cs file that specifies the version of the software that is built on that branch (lets call it "branch_1.0.0").
If a patch branch "branch_1.0.1" is cut from "branch_1.0.0" how can i prevent the AssemblyInfo.cs file from being changed when "branch_1.0.1" is merged back into a different branch (e.g "branch_1.0.0").
I have tried using git attributes to specify a merge driver (git config --global merge.ours.driver true) but i still see the file updated when i don't want it be
Thats method seems only of use if there is a merge conflict - i want to make sure the file is not overwritten at all during a merge.
Is there a simple solution to this issue that im missing? Thanks