---
name: "PublicInbox::Git"
section: "3pm"
platform: "linux"
package: "perl-publicinbox"
version: "2.1.0-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/PublicInbox::Git"
---

# PublicInbox::Git(3pm)

git wrapper

## NAME

PublicInbox::Git - git wrapper

## VERSION

version 1.0

## SYNOPSIS

```
        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);
```

## DESCRIPTION

Unstable API outside of the "new" method. It requires [**git**(1)](/git/1.md) to be installed.

## METHODS

### new

```
        my $git = PublicInbox::Git->new($git_dir);
```

Initialize a new PublicInbox::Git object for use with PublicInbox::Import This is the only public API method we support.  Everything else in this module is subject to change.

## SEE ALSO

Git, PublicInbox::Import

## CONTACT

All feedback welcome via plain-text mail to \<mailto:meta@public-inbox.org\>

The mail archives are hosted at \<https://public-inbox.org/meta/\>

## COPYRIGHT

Copyright (C) 2016 all contributors \<mailto:meta@public-inbox.org\>

License: AGPL-3.0+ \<http://www.gnu.org/licenses/agpl-3.0.txt\>
