NAME
App::Git::Workflow - Git workflow tools
VERSION
This documentation refers to App::Git::Workflow version 1.1.6
SYNOPSIS
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();
DESCRIPTION
This module contains helper functions for the command line scripts.
SUBROUTINES/METHODS
new (%params)
Create a new App::Git::Workflow::Pom
object
git ()
Get the git repository object
branches ([ $type ])
Param: $type
- one of local, remote or both
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.
children ($dir)
Get the child files of $dir
config ($name, $default)
Get the git config value of $name
, or if not set $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
files_from_sha ($sha)
Get the files changed by the commit
slurp ($file)
Return the contents of $file
spew ( $file, @data )
Write @data
to the file $file
settings ()
Get the saved settings for the current repository
save_settings ()
Save any changed settings for the current repository
DIAGNOSTICS
CONFIGURATION AND ENVIRONMENT
DEPENDENCIES
INCOMPATIBILITIES
BUGS AND LIMITATIONS
There are no known bugs in this module.
Please report problems to Ivan Wills (ivan.wills@gmail.com).
Patches are welcome.
AUTHOR
Ivan Wills - (ivan.wills@gmail.com)
LICENSE AND COPYRIGHT
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.