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

mod-times (was: keyword expansion)

From
tony.luck@intel.com <tony.luck@intel.com>
Date
Apr 25, 2005, 17:56 UTC
Message-ID
<200504251756.j3PHuSh01362@unix-os.sc.intel.com>
In-Reply-To
<20050425002343.GF10806@cip.informatik.uni-erlangen.de>
Show 5 quoted lines
> I am aware that keyword expansion is at the moment at the very bottom of
> the todo list. However I need it. Has someone something ready to use? I
> am looking for the following informations:
> 
> 	- Time stamp of the last modification of a file

One way to do this would be to rip on some of the core fundamentals of GIT and store the time that an object was created inside the object. E.g.

   blob size secs-since-1970 ...

Then "read-tree" could fill this into the cache, and checkout-cache could set the mod-time on the file when it creates it, which would mean that you could see the timestamp for a file simply by using "ls -l file".

I think we'd need some other justifications before this would stand any hope of getting in though, since it makes such a huge incompatible change to the basic GIT format :-) Maybe queue the idea for GIT2.0?

-Tony
Previous: Thomas GlanzmannNext: Thomas Glanzmann
Message 2 of 5 in “keyword expansion”
  1. Thomas GlanzmannApr 25, 2005
  2. mod-times (was: keyword expansion)tony.luck@intel.com, Apr 25, 2005
  3. Thomas GlanzmannApr 25, 2005
  4. Geert BoschApr 25, 2005
  5. Linus TorvaldsApr 26, 2005

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.