From ad679cb6bedd72bb70df47dbedac5a8d785ecc2b Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 10 Feb 2017 21:23:01 +0000 Subject: repo: add class for representing a code repo This should hopefully allow us to organize our code better --- lib/PublicInbox/Repo.pm | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 lib/PublicInbox/Repo.pm (limited to 'lib/PublicInbox/Repo.pm') diff --git a/lib/PublicInbox/Repo.pm b/lib/PublicInbox/Repo.pm new file mode 100644 index 00000000..812b1071 --- /dev/null +++ b/lib/PublicInbox/Repo.pm @@ -0,0 +1,15 @@ +# Copyright (C) 2017 all contributors +# License: AGPL-3.0+ +# +# Represents a code repository, analoguos to the PublicInbox::Inbox +# class for represpenting an inbox git repository. +package PublicInbox::Repo; +use strict; +use warnings; + +sub new { + my ($class, $opts) = @_; + bless $opts, $class; +} + +1; -- cgit v1.2.3-24-ge0c7