{"thread":{"id":"43361","subject":"Re: tracking separate branches with RSS","startedAt":"2006-11-14T00:44:36Z","lastAt":"2006-11-14T02:21:58Z","messageCount":4,"participants":["Jakub Narebski","Han-Wen Nienhuys"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"296402","messageId":"ejb3hh$nvr$1@sea.gmane.org","threadId":"43361","inReplyTo":null,"subject":"tracking separate branches with RSS","fromName":"Han-Wen Nienhuys","fromEmail":"hanwen@xs4all.nl","sentAt":"2006-11-14T00:44:36Z","receivedAt":"2006-11-14T00:44:36Z","isPatch":false,"sender":{"key":"hanwen@google.com","avatar":"https://avatars.githubusercontent.com/u/31547?v=4"},"body":"\nHello,\n\nI think that the shortlog / RSS support in gitweb is really neat. \nHowever, it seems to track only the master branch.\n\nIn our repository (http://git.sv.gnu.org/gitweb/?p=lilypond.git;a=summary),\nwe track two completely disparate branches in one repository: we have \nboth the project and the website for the project in branches\n\n   master\n\nand\n\n   web/master\n\nUnfortunately,  I don't seem to get any updates in my RSS reader when I \npush something  to web/master. Would it be possible have a separate feed \nfor each branch?  I tried looking at the gitweb script, but my perl-fu \nis too weak to figure out how to pass an argument from the URL into a \ngit_rss() to replace  the\n\n   git_get_head_hash($project)\n\ncall.\n\nA second possibility -less desirable, but better than nothing- is to \nhave commits from all branches show up in the shortlog and the RSS feed.\n\n-- \n  Han-Wen Nienhuys - hanwen@xs4all.nl - http://www.xs4all.nl/~hanwen\n"},{"id":"297818","messageId":"ejb410$nvg$1@sea.gmane.org","threadId":"43361","inReplyTo":"ejb3hh$nvr$1@sea.gmane.org","subject":"Re: tracking separate branches with RSS","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2006-11-14T00:54:03Z","receivedAt":"2006-11-14T00:54:03Z","isPatch":false,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"Han-Wen Nienhuys wrote:\n\n> I think that the shortlog / RSS support in gitweb is really neat. \n> However, it seems to track only the master branch.\n> \n> In our repository (http://git.sv.gnu.org/gitweb/?p=lilypond.git;a=summary),\n> we track two completely disparate branches in one repository: we have \n> both the project and the website for the project in branches\n> \n>    master\n> \n> and\n> \n>    web/master\n> \n> Unfortunately,  I don't seem to get any updates in my RSS reader when I \n> push something  to web/master. Would it be possible have a separate feed \n> for each branch?  I tried looking at the gitweb script, but my perl-fu \n> is too weak to figure out how to pass an argument from the URL into a \n> git_rss() to replace  the\n> \n>    git_get_head_hash($project)\n> \n> call.\n\nFor quick'n'dirty solution it would be enough to just replace\n    git_get_head_hash($project)\nwith\n    $hash || \"HEAD\"\n(or $hash || git_get_head_hash($project)).\n\nThen to track branch 'branch' with RSS just use \n    ?p=project.git;a=rss;h=branch\nas a query string.\n\n\nI started doing it, but the problem is that you have to change also a bit\nof contents, for example summary/title, and some links.\n\ngit_rss subroutine is one of the few subroutines which didn't get refactored.\n\n> A second possibility -less desirable, but better than nothing- is to \n> have commits from all branches show up in the shortlog and the RSS feed.\n\nUse \"--all\" as 'h' (hash) parameter.\n\n\nP.S. What do you think about moving from RSS to Atom for feeds?\n\n-- \nJakub Narebski\nWarsaw, Poland\nShadeHawk on #git\n\n"},{"id":"297785","messageId":"455920EC.7060804@xs4all.nl","threadId":"43361","inReplyTo":"ejb410$nvg$1@sea.gmane.org","subject":"Re: tracking separate branches with RSS","fromName":"Han-Wen Nienhuys","fromEmail":"hanwen@xs4all.nl","sentAt":"2006-11-14T01:50:36Z","receivedAt":"2006-11-14T01:50:36Z","isPatch":false,"sender":{"key":"hanwen@google.com","avatar":"https://avatars.githubusercontent.com/u/31547?v=4"},"body":"Jakub Narebski escreveu:\n\n>> A second possibility -less desirable, but better than nothing- is to \n>> have commits from all branches show up in the shortlog and the RSS feed.\n> \n> Use \"--all\" as 'h' (hash) parameter.\n> \n\nThis doesn't seem to work.  Note that I'm savannah.gnu.org, which may \nrun an older version. The quickest way to get this up and running is to \nhave real patches appear in the official release, and convince Sylvain \nto upgrade to a better gitweb.\n\n> P.S. What do you think about moving from RSS to Atom for feeds?\n\nI don't know: as far as I'm concerned, both are things that I paste into \nThunderbird's \"News & Blog\" section, and then it magically works. (or \ndoesn't, as in this case).\n\n\n-- \n  Han-Wen Nienhuys - hanwen@xs4all.nl - http://www.xs4all.nl/~hanwen\n"},{"id":"294500","messageId":"200611140321.58749.jnareb@gmail.com","threadId":"43361","inReplyTo":"455920EC.7060804@xs4all.nl","subject":"Re: tracking separate branches with RSS","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2006-11-14T02:21:58Z","receivedAt":"2006-11-14T02:21:58Z","isPatch":false,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"Han-Wen Nienhuys wrote;\n> Jakub Narebski escreveu:\n> \n>>> A second possibility -less desirable, but better than nothing- is to \n>>> have commits from all branches show up in the shortlog and the RSS feed.\n>> \n>> Use \"--all\" as 'h' (hash) parameter.\n>> \n> \n> This doesn't seem to work.  Note that I'm savannah.gnu.org, which may \n> run an older version. The quickest way to get this up and running is to \n> have real patches appear in the official release, and convince Sylvain \n> to upgrade to a better gitweb.\n\nSorry, I should have made more clear that it would work only _after_\nmentioned changes.\n-- \nJakub Narebski\n"}]}