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

Re: Keeping the file modification date with git

From
Jeff King <peff@peff.net>
Date
Jan 28, 2011, 22:25 UTC
Message-ID
<20110128222552.GA10372@sigill.intra.peff.net>
In-Reply-To
<87bp30vmek.fsf@an-dro.info.enstb.org>
On Fri, Jan 28, 2011 at 08:49:39PM +0100, Ronan Keryell wrote:
Show 7 quoted lines
> After heavily using git for code development, we plan to use it for
> administrative storage and I need to keep the modification date
> of the files.
> [...]
> So I'm envisioning different solutions:
> 
> - it is already done. I have missed this. :-) But would be great. :-)
Nope. The tree format does not have a date field.
> - giving up. Not an option :-)
Right. :)
> - it is added to git core functions because it is quite useful for some
>   people. Too time-consuming for me since I'm not a git developer... But
>   someone else could do this...

Nope. That would require changing one of the fundamental data structures of git (the tree object) and is not likely to happen for a variety of reasons (mostly it becomes a performance hit and a compatibility issue when the majority of people don't even care about this issue).

> - add this concept aside. For example, just as there are .gitignore or
>   .gitattributes files, we could have a .gitdates that would store in a
>   human-readable manner the modification time of the files in its
>   directory.
Yep, this is a good solution. Check out metastore:
  http://david.hardeman.nu/software.php
-Peff
Previous: Ronan Keryell
Message 2 of 2 in “Keeping the file modification date with git”
  1. Ronan KeryellJan 28, 2011
  2. Jeff KingJan 28, 2011

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.