]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
repobrowse: comment describing Git wrapper creation
authorEric Wong <e@80x24.org>
Fri, 13 Jan 2017 22:05:10 +0000 (22:05 +0000)
committerEric Wong <e@80x24.org>
Fri, 13 Jan 2017 22:05:10 +0000 (22:05 +0000)
Metaprogramming can be difficult-to-read after several
months, so leave comments in place to describe common
usage results of.

lib/PublicInbox/Repobrowse.pm

index 2c758ca8c0ebd5f8e02037459932dc6ad96dedb4..1050ed5028aa45366dc64b0e281a90392fc5fbd2 100644 (file)
@@ -143,6 +143,8 @@ sub call {
        $req->{tslash} = $tslash;
        $mod = load_once("PublicInbox::Repobrowse$vcs$mod");
        $vcs = load_once("PublicInbox::$vcs");
+
+       # $repo_info->{git} ||= PublicInbox::Git->new(...)
        $repo_info->{$vcs_lc} ||= $vcs->new($repo_info->{path});
 
        $req->{expath} = join('/', @extra);