From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sergio Callegari Subject: Re: .gitignore, .gitattributes, .gitmodules, .gitprecious?, .gitacls? etc. Date: Mon, 27 Aug 2007 17:07:34 +0000 (UTC) Message-ID: References: <2646CA4BEA644C9E9089C4A1AC395250@ntdev.corp.microsoft.com> <7v1wdqud0z.fsf@gitster.siamese.dyndns.org> <86odgtou5p.fsf@lola.quinscape.zz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: git@vger.kernel.org X-From: git-owner@vger.kernel.org Mon Aug 27 19:09:27 2007 Return-path: Envelope-to: gcvg-git@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1IPi4H-0004xj-Sv for gcvg-git@gmane.org; Mon, 27 Aug 2007 19:08:02 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756369AbXH0RH6 (ORCPT ); Mon, 27 Aug 2007 13:07:58 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753733AbXH0RH6 (ORCPT ); Mon, 27 Aug 2007 13:07:58 -0400 Received: from main.gmane.org ([80.91.229.2]:43952 "EHLO ciao.gmane.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752684AbXH0RH5 (ORCPT ); Mon, 27 Aug 2007 13:07:57 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IPi42-00072I-4x for git@vger.kernel.org; Mon, 27 Aug 2007 19:07:46 +0200 Received: from 99.Red-80-58-205.staticIP.rima-tde.net ([80.58.205.99]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 27 Aug 2007 19:07:46 +0200 Received: from scallegari by 99.Red-80-58-205.staticIP.rima-tde.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 27 Aug 2007 19:07:46 +0200 X-Injected-Via-Gmane: http://gmane.org/ X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 80.58.205.99 (Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.6) Gecko/20061201 Firefox/2.0.0.6 (Ubuntu-feisty)) Sender: git-owner@vger.kernel.org Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: David Kastrup gnu.org> writes: > > Sergio Callegari arces.unibo.it> writes: > > > Couldn't all this directory/ownership/permission tracing be easily > > done by using hooks? E.g. Having a pre-status and pre-commit hook > > one could fire up a program/script to collect all the extra info he > > wants to trace and store it somewhere (typically in some traced > > file). The other way round one could have a post-checkout hook and > > he could arrange it to fire up some program to look into the > > extra-info file to set up all the meta-data he wants. > > > > This would be very flexible and would permit to manage absolutely > > /any/ kind of the metadata leaving absolute freedom about how to do > > so. > > > > Am I missing something here? > > Merging. > Sorry, maybe I am really missing something, since merging does not look to me as an issue. Why cannot git simply do the merging in the working tree as it normally does, including merging of the traced metadata file generated by the metadata helpers invoked via the hooks? Only, again more hooks are needed and likely a post-merge hook, so that at the end of the merge, the metadata can be applied. Only, to have things going on smoothly, one should be so wise to assure that the metadata helpers save metadata as nice, sorted text files in order to minimize the burden of manual intervention if there are conflicts in metadata merging. BTW. Having a post-checkout hook could also help getting rid of unwanted empty directories, couldn't it? Sergio