Re: Git "Keeping Original Dates"
- From
Jeff King <peff@peff.net>
- Date
- Jun 6, 2017, 01:22 UTC
- Message-ID
- <20170606012159.yqypreouvmmrfifd@sigill.intra.peff.net>
- 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:
Show 10 quoted lines
> 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