git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: gitweb - feature request

From
MJMitchell Blank Jr <mitch@sfgoth.com>
Date
Aug 12, 2005, 21:16 UTC
Message-ID
<20050812211600.GA61428@gaz.sfgoth.com>
In-Reply-To
<20050812203322.GB9696@vrfy.org>
Kay Sievers wrote:
> It's 30 now and up to 150 if they are not older than 48 hours.
> We can change the numbers, if you hava a better idea...

Is it really hard to just make it purely time-based (git-rev-list --max-age)? Think of if Linus is merging with a lot of people and then pushes the results to the master repository -- suddenly there's, say, 400 new commits since the last time my aggregator checked 2 hours ago.

> For now it just lists all changed files to the log message, similar to the
> "commit" view. Is that ok, or do we really need the diffstat,

It looks great, thanks! diffstat would be slightly nicer but not a big deal.

> It may be
> a bit expensive to generate it for all the commits with every RSS request...

Well if the RSS feed's popularity takes off you'll probably want to *not* generate it every time and instead serve it from a static file. This can be as simple as a Makefile like:

	commits.rss: $(GITDIR)/refs/heads/master
		/path/to/myperlscript.pl $(GITDIR) > commits.rss.NEW && chmod 444 commits.rss.NEW && mv commits.rss.NEW commits.rss

and then call "make -C /my/rss/dir -s -f /path/to/mymakefile.mk" from cron every minute.

Serving the rss from a static file has the big advantage that a well-behaved aggregator will only request it if the modification date changed which saves everyone bandwidth.

-Mitch
Previous: Kay SieversNext: Matthias Urlichs
Message 17 of 19 in “gitweb - feature request”
  1. Sam RavnborgAug 9, 2005
  2. Kay SieversAug 9, 2005
  3. Sam RavnborgAug 9, 2005
  4. Johannes SchindelinAug 9, 2005
  5. Sam RavnborgAug 9, 2005
  6. John BenesAug 9, 2005
  7. Kay SieversAug 9, 2005
  8. Linus TorvaldsAug 9, 2005
  9. Kay SieversAug 10, 2005
  10. Linus TorvaldsAug 10, 2005
  11. Kay SieversAug 9, 2005
  12. Kay SieversAug 10, 2005
  13. Sam RavnborgAug 10, 2005
  14. Ian CampbellAug 10, 2005
  15. Mitchell Blank JrAug 10, 2005
  16. Kay SieversAug 12, 2005
  17. Mitchell Blank JrAug 12, 2005
  18. Matthias UrlichsAug 13, 2005
  19. Kay SieversAug 12, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.