git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Jeff King <peff@peff.net>
To: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com>
Cc: Hector Santos <winserver.support@winserver.com>,
	Git Mailing List <git@vger.kernel.org>
Subject: Re: Git "Keeping Original Dates"
Date: Mon, 5 Jun 2017 21:22:00 -0400	[thread overview]
Message-ID: <20170606012159.yqypreouvmmrfifd@sigill.intra.peff.net> (raw)
In-Reply-To: <CACBZZX4t+dJA-G9r+LuskmkpR5oR7+YMUSCZgL3GCgPcKkda2Q@mail.gmail.com>

On Mon, Jun 05, 2017 at 11:27:45PM +0200, Ævar Arnfjörð Bjarmason wrote:

> On Mon, Jun 5, 2017 at 11:14 PM, Hector Santos
> <winserver.support@winserver.com> wrote:
> > I'm implementing GIT.  If there an option or compile/version that "keep"
> > file timestamps?
> 
> The git datamodel stores files as a list of names and whether or not
> they have the executable bit.
> 
> If you need to set the ctime/mtime/whatever on the other side you'd do
> that via some script you'd ship with your repository.

There are existing scripts which implement this approach, like
metastore:

  https://github.com/przemoc/metastore

I haven't used it, but I think it's fairly mature, as it has been around
since the early days of Git.

-Peff

  reply	other threads:[~2017-06-06  1:22 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-05 21:14 Git "Keeping Original Dates" Hector Santos
2017-06-05 21:25 ` Jason Pyeron
2017-06-05 22:06   ` Ævar Arnfjörð Bjarmason
2017-06-05 23:36     ` Hector Santos
2017-06-06 16:09       ` Theodore Ts'o
2017-06-05 21:27 ` Ævar Arnfjörð Bjarmason
2017-06-06  1:22   ` Jeff King [this message]
2017-06-06  2:43     ` Hector Santos
2017-06-06  7:12 ` Konstantin Khomoutov

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

  List information: http://vger.kernel.org/majordomo-info.html

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

  git send-email \
    --in-reply-to=20170606012159.yqypreouvmmrfifd@sigill.intra.peff.net \
    --to=peff@peff.net \
    --cc=avarab@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=winserver.support@winserver.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).