From: Junio C Hamano Date: Thu, 10 Nov 2005 20:30:55 GMT Subject: Re: merge-one-file: use common as base, instead of emptiness. Message-ID: <7vk6fgxn28.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <20051110194317.GV30496@pasky.or.cz> Petr Baudis writes: > But obviously now the trouble is opposite, when the files are completely > unrelated, since now you likely get large conflicting areas interleaved > with some scarce common lines... And this might get to be a big PITA to > resolve as well. Yeah, you can always count lines in $orig and $src2 after two-file merge runs, and if it appears we do not have enough common section just empty the $orig before running merge.