From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Barkalow Subject: Re: mtimes of working files Date: Sat, 14 Jul 2007 21:46:47 -0400 (EDT) Message-ID: References: <20070711202615.GE3069@efreet.light.src> <200707120857.53090.andyparkins@gmail.com> <1184261246.31598.139.camel@pmac.infradead.org> <20070713003700.GA21304@thunk.org> <1184367619.2785.58.camel@shinybook.infradead.org> <1184370414.2785.79.camel@shinybook.infradead.org> <20070714222221.GB3678@efreet.light.src> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: Jan Hudec , David Woodhouse , Linus Torvalds , Theodore Tso , Andy Parkins , git@vger.kernel.org, Johannes Schindelin To: Julian Phillips X-From: git-owner@vger.kernel.org Sun Jul 15 03:46:56 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 1I9tCF-0002T7-T5 for gcvg-git@gmane.org; Sun, 15 Jul 2007 03:46:52 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760534AbXGOBqt (ORCPT ); Sat, 14 Jul 2007 21:46:49 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1761469AbXGOBqs (ORCPT ); Sat, 14 Jul 2007 21:46:48 -0400 Received: from iabervon.org ([66.92.72.58]:3671 "EHLO iabervon.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759065AbXGOBqs (ORCPT ); Sat, 14 Jul 2007 21:46:48 -0400 Received: (qmail 9491 invoked by uid 1000); 15 Jul 2007 01:46:47 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 15 Jul 2007 01:46:47 -0000 In-Reply-To: Sender: git-owner@vger.kernel.org Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: On Sat, 14 Jul 2007, Julian Phillips wrote: > On Sun, 15 Jul 2007, Jan Hudec wrote: > > > It would be IMHO possible to symlink all the stuff in .git except HEAD and > > index, except for one problem. This is if you have two checkouts from the > > same branch and check out of them, the other one needs to know, that it's > > head should now be detached to stay where it was. > > You basically just described what the git-new-workdir script in > contrib/workdir does ... it doesn't address the issue of reference updating. That's where keeping the index's parents in the index would help. Various people have implemented it at various times, but it's never quite become sufficiently important to people to have the correct behavior worked out and put into mainline. IIRC, not too long ago Junio had an implementation in pu, but ended up dropping it because almost nobody would see a difference, and the people who did see a difference only had it interfere with what they were trying to do. -Daniel *This .sig left intentionally blank*