diff options
author | Eric Wong <e@80x24.org> | 2015-12-22 00:17:33 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2015-12-22 00:58:13 +0000 |
commit | 4c2c2325d2948ec5340e2fcafbee798cf568f5fd (patch) | |
tree | 85dd6e48f4b7c658cb3eee12032143839000f218 /lib/PublicInbox/View.pm | |
parent | b140961420c0f240c9c3f55e83c52cfc3efa709d (diff) | |
download | public-inbox-4c2c2325d2948ec5340e2fcafbee798cf568f5fd.tar.gz |
We'll be using it for more than just cat-file. Adding a `popen' API for internal use allows us to save a bunch of code in other places.
Diffstat (limited to 'lib/PublicInbox/View.pm')
-rw-r--r-- | lib/PublicInbox/View.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index 68741c5e..2ca7f95c 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -183,8 +183,8 @@ sub emit_thread_html { anchor_idx => 0, }; - require PublicInbox::GitCatFile; - my $git = PublicInbox::GitCatFile->new($ctx->{git_dir}); + require PublicInbox::Git; + my $git = $ctx->{git} ||= PublicInbox::Git->new($ctx->{git_dir}); if ($flat) { pre_anchor_entry($seen, $_) for (@$msgs); __thread_entry(\$cb, $git, $state, $_, 0) for (@$msgs); |