From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?Santi_B=E9jar?= Subject: Re: custom diff - text file diary entries Date: Thu, 30 Dec 2010 14:47:27 +0100 Message-ID: References: <4D1C7979.9050400@op5.se> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Cc: git@vger.kernel.org To: Zenaan Harkness X-From: git-owner@vger.kernel.org Thu Dec 30 14:47:56 2010 Return-path: Envelope-to: gcvg-git-2@lo.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PYIrD-0002mM-HQ for gcvg-git-2@lo.gmane.org; Thu, 30 Dec 2010 14:47:55 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753273Ab0L3Nrt (ORCPT ); Thu, 30 Dec 2010 08:47:49 -0500 Received: from mail-qy0-f181.google.com ([209.85.216.181]:49184 "EHLO mail-qy0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751247Ab0L3Nrs (ORCPT ); Thu, 30 Dec 2010 08:47:48 -0500 Received: by qyk12 with SMTP id 12so12342204qyk.19 for ; Thu, 30 Dec 2010 05:47:47 -0800 (PST) Received: by 10.229.83.198 with SMTP id g6mr14514689qcl.157.1293716867481; Thu, 30 Dec 2010 05:47:47 -0800 (PST) Received: by 10.229.215.129 with HTTP; Thu, 30 Dec 2010 05:47:27 -0800 (PST) In-Reply-To: Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: On Thu, Dec 30, 2010 at 1:36 PM, Zenaan Harkness wrote: > On Thu, Dec 30, 2010 at 23:22, Andreas Ericsson wrote: >> On 12/30/2010 12:33 PM, Zenaan Harkness wrote: >>> Problem: >>> Separate text file diary entries, committed in separate repos, >>> cause merge clash when pushed to central repo, >>> since git thinks the two entries are a single conflicting entry >>> (since they begin at the same location in the same file). >>> >>> What we need is two diary entries automatically detected and inserted >>> into the one file, one above the other (ordering is not so important). > ... >> If you really, really want to use git for this, you could create your >> own custom merge driver. How to do so is reasonably well documented in >> examples and man-pages. You'll want to sneak a peak at the attributes >> page. > > "custom merge driver .. attributes page" Maybe you are interested also in these ChangeLog merge driver for git: https://git.wiki.kernel.org/index.php/Interfaces,_frontends,_and_tools#git-merge-changelog HTH, Santi