1Dist::Zilla::Role::Git:U:sReerpoC(o3n)tributed Perl DocuDmiesntt:a:tZiiolnla::Role::Git::Repo(3)
2
3
4
6 Dist::Zilla::Role::Git::Repo - Provide repository information for Git
7 plugins
8
10 version 2.045
11
13 This role is used within the Git plugins to get information about the
14 repository structure, and to create a Git::Wrapper object.
15
17 repo_root
18 The repository root, either as a full path or relative to the
19 distribution root. The default is the distribution root
20 ("$zilla-"root>).
21
23 current_git_branch
24 $branch = $plugin->current_git_branch;
25
26 The current branch in the repository, or "undef" if the repository has
27 a detached HEAD. Note: This value is cached; it will not be updated if
28 the branch is changed during the run.
29
30 git
31 $git = $plugin->git;
32
33 This method returns a Git::Wrapper object for the "repo_root"
34 directory, constructing one if necessary. The object is shared between
35 all plugins that consume this role (if they have the same "repo_root").
36
38 Bugs may be submitted through the RT bug tracker
39 <https://rt.cpan.org/Public/Dist/Display.html?Name=Dist-Zilla-Plugin-
40 Git> (or bug-Dist-Zilla-Plugin-Git@rt.cpan.org <mailto:bug-Dist-Zilla-
41 Plugin-Git@rt.cpan.org>).
42
43 There is also a mailing list available for users of this distribution,
44 at <http://dzil.org/#mailing-list>.
45
46 There is also an irc channel available for users of this distribution,
47 at "#distzilla" on "irc.perl.org" <irc://irc.perl.org/#distzilla>.
48
49 I am also usually active on irc, as 'ether' at "irc.perl.org".
50
52 Jerome Quelin
53
55 This software is copyright (c) 2009 by Jerome Quelin.
56
57 This is free software; you can redistribute it and/or modify it under
58 the same terms as the Perl 5 programming language system itself.
59
60
61
62perl v5.28.0 2018-06-03 Dist::Zilla::Role::Git::Repo(3)