From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22710 invoked by alias); 17 Jun 2013 10:58:00 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 31482 Received: (qmail 26300 invoked from network); 17 Jun 2013 10:57:46 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.223.182 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=llW6p4xwhNKHgxKqaiSCfyBDgvFz3hMVdpkXf7n4rbU=; b=YJheGK3u3Lc8kz561j/rcjeMZqF1nMTI+hIldEXWQDnq9+u2l5ulhiW6PefvuYOpHD 7Swq4A+XQR8hstOKjalBj/RGT78LUPtRT7tuFHGe/s2q8gQifDE9SfzUt0G3f+8JNlYU 73zk3x2HelFVxYRGQim7bsbFGEEnUKpYTbI2otKKjNYn+xvnLhgiuz5kujLgR1gdC1UK RV/DRyRFTfJrc4TLMs5FNvGzPSfZo460plNzvWaenN/BYzCJsHKKTWrevjN9wa4x99SI lC+Z0EWY84hfTrUY3Vx1NxEazG54HOHOwkKnMF4C6syEq2qs/c/xqTBn6I5XBcuy8reg gr9Q== MIME-Version: 1.0 X-Received: by 10.50.101.100 with SMTP id ff4mr4489558igb.6.1371466655787; Mon, 17 Jun 2013 03:57:35 -0700 (PDT) In-Reply-To: <130615124610.ZM12323@torch.brasslantern.com> References: <130615124610.ZM12323@torch.brasslantern.com> Date: Mon, 17 Jun 2013 12:57:35 +0200 Message-ID: Subject: Re: git branches and compilation From: Mikael Magnusson To: zsh workers Content-Type: text/plain; charset=UTF-8 On 15 June 2013 21:46, Bart Schaefer wrote: > On Saturday, May 18, 2013, Phil Pennock wrote: > >> On 2013-05-18 at 16:24 -0700, Bart Schaefer wrote: >> > (One of the few things I'm finding annoying about git is that >> > a cloned repository doesn't preserve file timestamps.) >> >> There's a post-checkout hook [...] > > Having been annoyed a couple of times by things not recompiling when a > different branch is checked out (especially the texinfo inputs in Doc/, > leading to reams of bad node errors when doing "make info") I dug into > this a bit further and found "metastore". > > http://david.hardeman.nu/software.php > > It's available as a Debian package and seems so far to do what I want, > although I haven't really been able to test it thoroughly because no one > else has pushed anything in the past couple of days. I don't quite understand the purpose... When you change branches you want the source files to have an updated mtime, otherwise they will not be newer than the build files of the previously checked out branch and make will not rebuild. So what git does is what you usually want for source code -> "the files on disk changed so rebuild". How does setting the timestamps older help? -- Mikael Magnusson