Permalink
Browse files

fix and document previous commit

  • Loading branch information...
1 parent 271739d commit b8b1a58eb69691a338429f5952b62f369e579ce5 Moritz Lenz committed with Nov 10, 2009
Showing with 4 additions and 2 deletions.
  1. +3 −1 modules/local/githubparser.pm
  2. +1 −1 modules/local/rakudonglog.pm
@@ -112,7 +112,7 @@ sub longest_common_prefix {
=head2 try_link
- modules::local::githubparser->try_link($url, ['network', '#channel']);
+ modules::local::githubparser->try_link($url, ['network', '#channel'], $branch);
This is called by autofeed.pm. Given a github.com URL, try to determine the
project name and canonical path. Then configure a feed reader for it if one
@@ -122,6 +122,8 @@ The array reference containing network and channel are optional. If not
specified, magnet/#parrot is assumed. If the feed already exists but didn't
have the specified target, the existing feed is extended.
+C<$branch> is optional, and defaults to C<master>.
+
Currently supports 3 URL formats:
http://github.com/tene/gil/
@@ -33,7 +33,7 @@ config and simply add the freenode channel to the list of targets.)
my $url = 'http://github.com/rakudo/rakudo';
sub init {
- modules::local::githubparser->try_link($url, ['freenode', '#perl6', 'ng']);
+ modules::local::githubparser->try_link($url, ['freenode', '#perl6'], 'ng');
}
1;

0 comments on commit b8b1a58

Please sign in to comment.