All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andreas Ericsson <ae@op5.se>
To: Fabrizio Pollastri <f.pollastri@inrim.it>
Cc: git@vger.kernel.org
Subject: Re: preserving mtime
Date: Fri, 16 Nov 2007 11:15:34 +0100	[thread overview]
Message-ID: <473D6DC6.8040804@op5.se> (raw)
In-Reply-To: <473D63F9.4010201@inrim.it>

Fabrizio Pollastri wrote:
> Hi all,
> is it possible to tell git to preserve the file modification time in a 
> checked out copy? It is useful when managing web files, where mtime is 
> tested by spiders for download decisions.

No. Doing so would seriously break build-systems. If you want you can
have a post-checkout hook that sets the mtime on all the files though.
You should be able to parse the time the commit being checked out was
made from HEAD.

-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

  reply	other threads:[~2007-11-16 10:15 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-16  9:33 preserving mtime Fabrizio Pollastri
2007-11-16 10:15 ` Andreas Ericsson [this message]
2007-11-17 18:22   ` Wayne Davison
2007-11-18  8:45     ` Mike Hommey
2007-11-18  9:34       ` Martin Langhoff
2007-11-18 18:47         ` David Brown
2007-11-18 20:36           ` Martin Langhoff
2007-11-18 21:44             ` David Brown
2007-11-18  9:40       ` Jan Hudec
2007-11-18 10:42         ` Robin Rosenberg
2007-11-19 14:38     ` Johannes Schindelin
2007-11-16 10:19 ` Jakub Narebski
2007-11-16 10:21 ` Junio C Hamano
2007-11-16 12:09 ` Erik Warendorph

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=473D6DC6.8040804@op5.se \
    --to=ae@op5.se \
    --cc=f.pollastri@inrim.it \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.