I have two branches b1 and b2 like this:
MyRepo
|- .git
|---|- config
|- .gitattributes
|- D1
|---|- foo.xml
In git\config, I have this configuration:
[merge "MyMerger"]
name = My merger
driver = MyMerger.exe %B %A %O
MyMerger.exe exists in the Path environment variable
Then, in .gitattributes, I have this:
/D1/foo.xml merge=MyMerger
But when I try to merge B1 and B2 with changes in foo.xml in both branches, it fails:
Auto-merging D1/foo.xml
CONFLICT (content): Merge conflict in D1/foo.xml
Automatic merge failed; fix conflicts and then commit the result.
I also tried to move the .gitattributes in D1 using this configuration:
foo.xml merge=MyMerger
But it fails too.
What did I miss?
Thanks