Dist::Zilla::Role::Git::Repo(3pm)

Dist::Zilla::Role::Git::Repo3pm

Provide repository information for git plugins

Version

version 2.051

Overview

This role is used within the Git plugins to get information about the repository structure, and to create a Git::Wrapper object.

Attributes

repo_root

The repository root, either as a full path or relative to the distribution root. The default is the distribution root ("$zilla-"root>).

Methods

current_git_branch

  $branch = $plugin->current_git_branch;

The current branch in the repository, or "undef" if the repository has a detached HEAD. Note: This value is cached; it will not be updated if the branch is changed during the run.

git

  $git = $plugin->git;

This method returns a Git::Wrapper object for the "repo_root" directory, constructing one if necessary. The object is shared between all plugins that consume this role (if they have the same "repo_root").

Support

Bugs may be submitted through the RT bug tracker <https://rt.cpan.org/Public/Dist/Display.html?Name=Dist-Zilla-Plugin-Git> (or [email protected] <mailto:[email protected]>).

There is also a mailing list available for users of this distribution, at <http://dzil.org/#mailing-list>.

There is also an irc channel available for users of this distribution, at "#distzilla" on "irc.perl.org" <irc://irc.perl.org/#distzilla>.

Releases

7 releases since Debian 7 (Wheezy); the text changed 6 times.

  1. 7
  2. 8
  3. 9
  4. 10
  5. 11
  6. 12
  7. 13

Author

Jerome Quelin

From libdist-zilla-plugin-git-perl 2.051-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.