CGit and modification times
Ferry Huberts
mailings at hupie.com
Sat May 14 09:55:26 CEST 2011
On 05/13/2011 11:20 PM, Ferry Huberts wrote:
> Hi list.
>
> 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 :-)
forget I said it :-)
Thought about it a bit more and I think current behaviour (+ the
packed-refs patch) is good enough.
--
Ferry Huberts
More information about the CGit
mailing list