App::Git::Workflow - Git workflow tools
This documentation refers to App::Git::Workflow version 1.1.3
use App::Git::Workflow qw/branches tags/; # Get all local branches my @branches = $self->branches(); # or @branches = $self->branches('local'); # remote branches @branches = $self->branches('remote'); # both remote and local branches @branches = $self->branches('both'); # similarly for tags my @tags = $self->tags();
This module contains helper functions for the command line scripts.
new (%params)
Create a new App::Git::Workflow::Pom object
App::Git::Workflow::Pom
git ()
Get the git repository object
branches ([ $type ])
Param: $type - one of local, remote or both
$type
Returns a list of all branches of the specified type. (Default type is local)
tags ()
Returns a list of all tags.
_alphanum_sort ()
Does sorting (for the building sort) in a alpha numerical fashion. Specifically all numbers are converted for the comparison to 14 digit strings with leading zeros.
sort
children ($dir)
Get the child files of $dir
$dir
config ($name, $default)
Get the git config value of $name, or if not set $default
$name
$default
current ()
Get the current branch/tag or commit
match_commits ($type, $regex, $max)
release ($tag_or_branch, $local, $search)
releases (%option)
commit_details ($name)
Get info from git show $name
git show $name
files_from_sha ($sha)
Get the files changed by the commit
slurp ($file)
Return the contents of $file
$file
spew ( $file, @data )
Write @data to the file $file
@data
settings ()
Get the saved settings for the current repository
save_settings ()
Save any changed settings for the current repository
There are no known bugs in this module.
Please report problems to Ivan Wills (ivan.wills@gmail.com).
Patches are welcome.
Ivan Wills - (ivan.wills@gmail.com)
Copyright (c) 2014 Ivan Wills (14 Mullion Close, Hornsby Heights, NSW Australia 2077). All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
To install App::Git::Workflow, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Git::Workflow
CPAN shell
perl -MCPAN -e shell install App::Git::Workflow
For more information on module installation, please visit the detailed CPAN module installation guide.