---
name: "Dist::Zilla::Role::GitConfig"
section: "3pm"
platform: "linux"
package: "libdist-zilla-plugin-config-git-perl"
version: "0.92-3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Dist::Zilla::Role::GitConfig"
---

# Dist::Zilla::Role::GitConfig(3pm)

Easy role to add git\_config option to most plugins

## NAME

Dist::Zilla::Role::GitConfig - Easy role to add git\_config option to most plugins

## SYNOPSIS

```
    package Dist::Zilla::Plugin::GitReleasePlugin;

    use Moose;

    with 'Dist::Zilla::Role::BeforeRelease';
    with 'Dist::Zilla::Role::GitConfig';

    sub _git_config_mapping { +{
       push_to   => '%{remote}s %{local_branch}s:%{remote_branch}s',
       changelog => '%{changelog}s',
    } }
```

## DESCRIPTION

This is an easy-to-use role for plugins to enable usage of Config::Git configurations.

## REQUIREMENTS

### \_git\_config\_mapping

Hashref of option to errf string mappings.

The mappings don't work for `"allow_dirty"`.  These are (currently) hardcoded to map to `"allow_dirty"` and `"allow_dirty_match"` options directly.

## AVAILABILITY

The project homepage is \<https://github.com/SineSwiper/Dist-Zilla-Plugin-Config-Git\>.

The latest version of this module is available from the Comprehensive Perl Archive Network (CPAN). Visit \<http://www.perl.com/CPAN/\> to find a CPAN site near you, or see \<https://metacpan.org/module/Dist::Zilla::Plugin::Config::Git/\>.

## AUTHOR

Brendan Byrd \<BBYRD@CPAN.org\>

## COPYRIGHT AND LICENSE

This software is Copyright (c) 2013 by Brendan Byrd.

This is free software, licensed under:

```
  The Artistic License 2.0 (GPL Compatible)
```
