CGit and modification times
mailings at hupie.com
Fri May 13 23:20:57 CEST 2011
While implementing the patch fixing idle times for packed repos it
occurred to me that currently CGit looks at modification times of files,
instead of at the timestamp on the actual commits.
Wouldn't it be better to retrieve the timestamp of the relevant
commit/tag and use that?
In case of the front page (listing all repos) that would mean getting
timestamps of all HEADs of all refs/tags of a repo to determine the idle
time (which also must be done for the repo page itself).
This obviously is a bit more expensive but maybe also a bit more correct?
Enabling caching should alleviate much of the problem.
Feedback appreciated :-)
More information about the CGit