Dist::Zilla::Role::Git::LocalRepository::CurrentBranch - Query state from Git about the current branch
Git
version 0.2.0
current_branch
If the consuming package is on a valid Git branch, this will return the name of it.
If not on a valid branch, will return false.
Recommended application order if using this role:
with "Dist::Zilla::Role::Plugin"; with "Dist::Zilla::Role::Git::LocalRepository"; with "Dist::Zilla::Role::Git::LocalRepository::LocalBranches"; with "Dist::Zilla::Role::Git::LocalRepository::CurrentBranch";
git
Must return a Git::Wrapper or compatible instance
Suggests: Dist::Zilla::Role::Git::LocalRepository
local_branches
Must return a HashRef mapping branch name to branch SHA1.
HashRef
SHA1
Suggests: Dist::Zilla::Role::Git::LocalRepository::LocalBranches
_current_sha1
Returns the SHA1 for the current HEAD
HEAD
Kent Fredric <kentnl@cpan.org>
This software is copyright (c) 2013 by Kent Fredric <kentnl@cpan.org>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Dist::Zilla::Plugin::Git::Remote::Check, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dist::Zilla::Plugin::Git::Remote::Check
CPAN shell
perl -MCPAN -e shell install Dist::Zilla::Plugin::Git::Remote::Check
For more information on module installation, please visit the detailed CPAN module installation guide.