From 4c2c2325d2948ec5340e2fcafbee798cf568f5fd Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 22 Dec 2015 00:17:33 +0000 Subject: rename 'GitCatFile' package to 'Git' 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. --- lib/PublicInbox/NewsGroup.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/PublicInbox/NewsGroup.pm') diff --git a/lib/PublicInbox/NewsGroup.pm b/lib/PublicInbox/NewsGroup.pm index 3a318958..b20180e6 100644 --- a/lib/PublicInbox/NewsGroup.pm +++ b/lib/PublicInbox/NewsGroup.pm @@ -10,7 +10,7 @@ use Scalar::Util qw(weaken); require Danga::Socket; require PublicInbox::Msgmap; require PublicInbox::Search; -require PublicInbox::GitCatFile; +require PublicInbox::Git; sub new { my ($class, $name, $git_dir, $address) = @_; @@ -32,7 +32,7 @@ sub defer_weaken { sub gcf { my ($self) = @_; $self->{gcf} ||= eval { - my $gcf = PublicInbox::GitCatFile->new($self->{git_dir}); + my $gcf = PublicInbox::Git->new($self->{git_dir}); # git repos may be repacked and old packs unlinked defer_weaken($self, 'gcf'); -- cgit v1.2.3-24-ge0c7