Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Quick local CVS change scan, and bug in read?



On 2013-05-18 at 21:26 -0700, Bart Schaefer wrote:
> Thanks.  Based on the discussion there, AIUI the hook sets the timestamp to
> the commit time?

Short version: yes, with some hand-waving to cover "what you meant" vs
"pedantic".

"git help show" and in "PRETTY FORMATS" the "format:<string>" section;
%ai/%at are the author timestamp; there's two timestamps, author and
committer, each of which can be overriden by env variables
($GIT_AUTHOR_DATE, $GIT_COMMITTER_DATE).

"commit time" changes if you rebase and is used for finding when
something happened in a particular branch's history.  "author time" is
when the change is recorded as having first been made.

So the patch updates the timestamps on the files to the time of the
commit which last modified those files (not the timestamps on the files
at the time that their changes were committed).

> Indeed it does, thanks for the archeology.

No problem.  "git blame" ("git annotate") is nice, and since it only has
to work locally it's blessedly fast.  (If you've ever dealt with
Perforce, you'll know how bad annotations can be ...)

-Phil



Messages sorted by: Reverse Date, Date, Thread, Author