git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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
Previous: Ævar Arnfjörð BjarmasonNext: Hector Santos
Message 3 of 9 in “Git "Keeping Original Dates"”
  1. Hector SantosJun 5, 2017
  2. Ævar Arnfjörð BjarmasonJun 5, 2017
  3. Jeff KingJun 6, 2017
  4. Hector SantosJun 6, 2017
  5. Jason PyeronJun 5, 2017
  6. Ævar Arnfjörð BjarmasonJun 5, 2017
  7. Hector SantosJun 5, 2017
  8. Theodore Ts'oJun 6, 2017
  9. Konstantin KhomoutovJun 6, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.