PublicInbox::Git(3)
π PublicInbox::Git(3) β the git wrapper, bestie edition π
User Contributed Perl Documentation Β· PublicInbox::Git(3)
okay so. you want to talk to git from Perl. this module is literally just a lil wrapper around it. no cap. let's go π¦
β¨ NAME β¨
PublicInbox::Git β a git wrapper. that's the whole vibe. it wraps git. π
β¨ VERSION β¨
version 1.0
(yeah. one point oh. iconic behavior π)
β¨ SYNOPSIS β¨
here's the whole entire thing, bestie, copy-paste ready:
use PublicInbox::Git;
chomp(my $git_dir = `git rev-parse --git-dir`);
$git_dir or die "GIT_DIR= must be specified\n";
my $git = PublicInbox::Git->new($git_dir);
so we shell out to git rev-parse --git-dir, chomp the newline off the end, and if it came back empty we die with the message GIT_DIR= must be specified\n. then we build the object. slay. β¨
β¨ DESCRIPTION β¨
ngl, the API here is unstable outside of the new method. like, everything else could change on you, fr fr. so don't get attached. π
also it requires git(1) to be installed on your system. no git, no module. periodt.
β¨ METHODS β¨
π new
my $git = PublicInbox::Git->new($git_dir);
this initializes a brand new PublicInbox::Git object for use with PublicInbox::Import. π«Ά
and listen β this is the only public API method we support. the only one. everything else in this module is subject to change, so if you're out here building on the other stuff, that's on you, bestie. π
β¨ SEE ALSO β¨
GitPublicInbox::Import
go read those too, iykyk πΈ
β¨ CONTACT β¨
all feedback is welcome, and they mean it! just send plain-text mail to <mailto:meta@public-inbox.org> π
the mail archives live at <https://public-inbox.org/meta/> if you wanna lurk. π
β¨ COPYRIGHT β¨
Copyright (C) 2016 all contributors <mailto:meta@public-inbox.org>
License: AGPL-3.0+ <http://www.gnu.org/licenses/agpl-3.0.txt>
π and that's the whole page. unstable API outside ofnew,git(1)required,newis the only supported method β everything else is a β¨mysteryβ¨.
perl v5.42.0 Β· 2025-07-25 Β· PublicInbox::Git(3)
mwah π thanks for reading, bestie β go make some objects πβ¨
π¦ where this page comes from
- fedora 43: perl-PublicInbox 2.0.0~20230714git590023f-6.fc43 Β· AGPL-3.0-or-later
- fedora 44: perl-PublicInbox 2.0.0~20230714git590023f-6.fc43 Β· AGPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms