git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: tony.luck@intel.com
To: Thomas Glanzmann <sithglan@stud.uni-erlangen.de>
Cc: git@vger.kernel.org
Subject: mod-times (was: keyword expansion)
Date: Mon, 25 Apr 2005 10:56:28 -0700	[thread overview]
Message-ID: <200504251756.j3PHuSh01362@unix-os.sc.intel.com> (raw)
In-Reply-To: <20050425002343.GF10806@cip.informatik.uni-erlangen.de>

> 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

  reply	other threads:[~2005-04-25 17:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-25  0:23 keyword expansion Thomas Glanzmann
2005-04-25 17:56 ` tony.luck [this message]
2005-04-25 18:10   ` mod-times (was: keyword expansion) Thomas Glanzmann
2005-04-25 18:13   ` Geert Bosch
2005-04-26  0:34   ` Linus Torvalds

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

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

  git send-email \
    --in-reply-to=200504251756.j3PHuSh01362@unix-os.sc.intel.com \
    --to=tony.luck@intel.com \
    --cc=git@vger.kernel.org \
    --cc=sithglan@stud.uni-erlangen.de \
    /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.
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 NNTP newsgroup(s).