From: Joey Hess Date: Wed, 07 Jan 2009 18:45:15 GMT Subject: Re: [PATCH] gitweb: support the rel=vcs microformat Message-ID: <20090107184515.GB31795@gnu.kitenet.net> In-Reply-To: Giuseppe Bilotta wrote: > The solution I have in mind would be something like this: in summary > or projects list view (which are the views in which we put the links, > and also the views in which we loop up the repo URL and the > description anyway), you fill up former @git_url_list (now > %project_metadata) looking up the repo description and URLs. You then > use this information both in the link tag and in the appropriate > places for the visible part of the webpage: you don't have a > significant overhead, because you're just moving the project > description retrieval early on. > > You probably want to refactor the code by making a > git_get_project_metadata() sub that extends the current URL retrieval > by retrieving description and URLs. The routine can then be used > either for one or for all the projects, as needed. Another approach would be to just memoize git_get_project_description and git_get_project_url_list. -- see shy jo