Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Git repository to RSS translator and optional Sinatra-based server
branch: master
Failed to load latest commit information.
bin Basic working git-to-rss + sinatra for ruby
lib Support bare repos as well
test Initial commit to gitfeed.
.document Initial commit to gitfeed.
LICENSE Initial commit to gitfeed.
README.rdoc Add docs
VERSION Version bump to 0.1.0



Produces an RSS v2 XML stream for a Git repository. Can be used inline in an application or as a stand-alone server.


Gitfeed can be used inline in an application to produce a string with the RSS commits:

require 'rubygems'
require 'gitfeed'

gf ='/home/git/repository')
puts gf.feed

It can also be used as a standalone server inside of an application:

require 'rubygems'
require 'gitfeed'


Or it can be used on the command line:

gitfeed /home/git/repository

Customizing the output

You can specify a Haml file to be used for each entry, the default is:

  %strong Author:
  %a{ :href => "mailto:#{}" }
  %strong Date:
  %strong Message:
  = entry.message
  %strong SHA:
  = entry.objectish
- if @include_diffs && !entry.parents.empty?
    = @git.diff(entry.parents.first.objectish, entry.objectish)

This can be passed as a configuration option either to the construtor, server or command line:

gitfeed --template=template.haml /home/git/repository


Copyright © 2010 Scott Wheeler. See LICENSE for details.

Something went wrong with that request. Please try again.