threads / discuss / 4765

git2rss --- publish changes from git-log via RSS

Subject: git2rss --- publish changes from git-log via RSS

## tl;dr

5 messages between Jul 4, 2006 and Jul 7, 2006.

replies: 4people: 3as markdown or json

Bennett Todd· Jul 4, 2006, 19:11 UTC · lore

Just switched Bent Linux[1] from darcs to git (darcs is sexy, but I can build git; ghc defeats me). So I hacked up a quick and simple git2rss to replace my use of darcs2rss for publishing updates.

<URL:http://bent.latency.net/git2rss>

I hardcoded a couple of Bent-linux-specific bits in there, if anybody else is actually interested in this, let me know, we can discuss how to peel 'em out.

I like to read the back archives before posting to a list I've just subscribed to, but couldn't find a downloadable version of the git list. If anybody could point me to one, I'd appreciate it.

-Bennett

[1] Bent Linux probably isn't of interest to anybody else, it's my mid-life crisis project, sound bite "unix as I came to love hear in the early '80s, when she and I were both much younger, slimmer, and healthier". uClibc, static linking only, no dynamic loading, no i18n, nothing gui. Handy for building initrds, perhaps useful for embedded applications. Nobody but a total crank like me would use it as their favoured workstation OS. <URL:http://bent.latency.net/bent/>

Jakub Narebski· Jul 4, 2006, 21:09 UTC · re: Bennett Todd · lore

Re: git2rss --- publish changes from git-log via RSS

Bennett Todd wrote:
Show 5 quoted lines
> Just switched Bent Linux[1] from darcs to git (darcs is sexy, but I
> can build git; ghc defeats me). So I hacked up a quick and simple
> git2rss to replace my use of darcs2rss for publishing updates.
> 
> <URL:http://bent.latency.net/git2rss>

Added to http://git.or.cz/gitwiki/InterfacesFrontendsAndTools#git2rss Please correct/expand the info if needed.

BTW. gitweb includes RSS feed, see e.g.:
  http://www.kernel.org/git/?p=git/git.git;a=rss
  http://www.kernel.org/git/?p=git/git.git;a=opml
> I like to read the back archives before posting to a list I've just
> subscribed to, but couldn't find a downloadable version of the git
> list. If anybody could point me to one, I'd appreciate it.
Both GitWiki and Wikipedia
  http://git.or.cz/gitwiki/GitCommunity
  http://en.wikipedia.org/wiki/Git_%28software%29
mentions several git mailing list archives
-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Bennett Todd· Jul 6, 2006, 12:53 UTC · re: Jakub Narebski · lore

Re: git2rss --- publish changes from git-log via RSS

2006-07-04T21:09:32 Jakub Narebski:
> Added to http://git.or.cz/gitwiki/InterfacesFrontendsAndTools#git2rss
> Please correct/expand the info if needed.

Thanks. But I'm not sure it belongs there. If anybody else turns out to be interested, and we work out how to update it to pull out the Bent-specific stuff hardcoded in it, and document the result, then maybe. At best it might be an example someone could copy, if they wanted to publish an rss of git-log, with some hardwired assumptions about the log format and the archive structure. It's not based on darcs2rss, it's a complete rewrite, and much simpler since I used XML::RSS::SimpleGen.

> BTW. gitweb includes RSS feed, see e.g.:
>   http://www.kernel.org/git/?p=git/git.git;a=rss
>   http://www.kernel.org/git/?p=git/git.git;a=opml

Can it be used for offline generation? I don't run any CGIs on my webserver, I re-generate bent.xml whenever I push any updates.

-Bennett
Jakub Narebski· Jul 7, 2006, 18:38 UTC · re: Bennett Todd · lore

Re: git2rss --- publish changes from git-log via RSS

Bennett Todd wrote:
> 2006-07-04T21:09:32 Jakub Narebski:
Show 6 quoted lines
>> BTW. gitweb includes RSS feed, see e.g.:
>>   http://www.kernel.org/git/?p=git/git.git;a=rss
>>   http://www.kernel.org/git/?p=git/git.git;a=opml
> 
> Can it be used for offline generation? I don't run any CGIs on my
> webserver, I re-generate bent.xml whenever I push any updates.

Just run it as a script. IIRC there is a way to pass CGI params to a script...

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Matthias Lederhofer· Jul 7, 2006, 19:23 UTC · re: Jakub Narebski · lore

Re: git2rss --- publish changes from git-log via RSS

Jakub Narebski wrote:
Show 13 quoted lines
> Bennett Todd wrote:
> 
> > 2006-07-04T21:09:32 Jakub Narebski:
> 
> >> BTW. gitweb includes RSS feed, see e.g.:
> >>   http://www.kernel.org/git/?p=git/git.git;a=rss
> >>   http://www.kernel.org/git/?p=git/git.git;a=opml
> > 
> > Can it be used for offline generation? I don't run any CGIs on my
> > webserver, I re-generate bent.xml whenever I push any updates.
> 
> Just run it as a script. IIRC there is a way to pass CGI params
> to a script...

env REQUEST_METHOD=GET QUERY_STRING='p=git/git.git;a=rss' \ ./gitweb.cgi | (read; read; cat)

works fine if gitweb.cgi is setup correctly.

← back to recent threads