diff options
author | Eric Wong <e@80x24.org> | 2016-07-02 07:56:35 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-07-02 07:57:27 +0000 |
commit | 2d5348c139e9a04d0576fffb0bd5d6c7750fa765 (patch) | |
tree | 8e7b45eecae5c1e245d7ebf5f27dcc1e7bea0dce /lib/PublicInbox/Inbox.pm | |
parent | e358bd7a3833f8c5bf9db57d228888f9c5f3692e (diff) | |
download | public-inbox-2d5348c139e9a04d0576fffb0bd5d6c7750fa765.tar.gz |
This is less code and hopefully easier-to-understand.
Diffstat (limited to 'lib/PublicInbox/Inbox.pm')
-rw-r--r-- | lib/PublicInbox/Inbox.pm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/PublicInbox/Inbox.pm b/lib/PublicInbox/Inbox.pm index 96c92652..728caa0c 100644 --- a/lib/PublicInbox/Inbox.pm +++ b/lib/PublicInbox/Inbox.pm @@ -108,6 +108,11 @@ sub msg_by_path ($$;$) { $str; } +sub path_check { + my ($self, $path) = @_; + git($self)->check('HEAD:'.$path); +} + sub msg_by_mid ($$;$) { my ($self, $mid, $ref) = @_; msg_by_path($self, mid2path($mid), $ref); |