If you are working on a collaborative project, you often would like to keep track on what others done to the project. The following explain how to automatically generate a RSS feed upon someone put new changes into the repository. Gitrss.rbFirst, the following Ruby script will generates a RSS feed file from the git repository. This script is hosted here.
Put this gitrss.rb in /Groups/git folder on project .vislab.usyd.edu.au (vislab's project server). Then in each project's git repository, put the following file (post-receive ) in hooks folder.You need to change post-receive#!/bin/sh # # An example hook script for the "post-receive" event. # # The "post-receive" script is run after receive-pack has accepted a pack # and the repository has been updated. It is passed arguments in through # stdin in the form # <oldrev> <newrev> <refname> # For example: # aa453216d1b3e49e7f6f98441fa56946ddcd6a20 68f7abf4e6f922807889f52bc043ecd31b7\ 9f814 refs/heads/master # # see contrib/hooks/ for a sample, or uncomment the next line and # rename the file to "post-receive". #. /usr/share/doc/git-core/contrib/hooks/post-receive-email ruby /Groups/git/gitrss.rb /Groups/GROUPNAME/project_name.git project_name.git > /Library/WebServer/ Documents/git_rss/project_name.git.rssThen, you can subscribe the RSS feed: http://project.vislab.usyd.edu.au/git_rss/project_name.git.rss or you can put the RSS feed widget on project's home page. |