Re: Trouble with file specific merge strategies
From: suvayu ali <hidden>
Date: 2016-06-15 22:53:16
Hi Junio, On Sun, Mar 11, 2012 at 09:57, Junio C Hamano [off-list ref] wrote:
suvayu ali [off-list ref] writes:quoted
... So when I came across the possibility of using .gitattributes for file specific merge strategies, I tried the following: pattern merge=oursI do not think we say .gitattributes can give merge strategy anywhere in our document. You can choose one of the few built-in merge drivers but "ours" is not one of them. Have you defined your own merge driver "ours" following the example in the gitattributes documentation (look for "feel-free merge driver")?
Ah, that explains it. You are absolutely correct in saying that the docs don't imply this. I was having doubts about this while reading the docs (man gitattributes). I got confused by this[1] example on progit and several pointers to it on stackoverflow. And no, I don't have a custom merge driver. This brings up the question, is that discussion on progit talking about something else? Is there a way to setup file specific merge strategies in a repo? Thanks a lot for your response. :) Cheers, Footnotes: [1] http://progit.org/book/ch7-2.html#merge_strategies -- Suvayu Open source is the future. It sets us free.