App::GHPT::WorkSubmitter::ChangedFiles - Contains all the files that were modified or added in a branch
version 1.000004
A class that represents what files were added, modified or deleted in a branch, as well as what files exist in the branch.
Normally constructed by App::GHPT::WorkSubmitter::ChangedFilesFactory.
my $factory = App::GHPT::WorkSubmitter::ChangedFilesFactory->new( merge_to_branch_name => 'master', ); my $changed_files = $factory->changed_files; # print out all modified / added file in this branch say for $changed_files->changed_files->@*;
All files added in this branch.
Arrayref of String. Required.
All files modified in this branch (excluding those that were added in this branch)
All files deleted in this branch.
All files in this branch (including those created before the branch was branched.) i.e. every file that you'd get from a fresh checkout of this branch.
All changed files (i.e. all files that were either added or modified in this branch.) Returns Arrayref of Strings.
Returns true iff any of the changed files filenames match the passed regex
Returns a list of changed files filenames matching the passed regex
Does the passed file exist on the branch (i.e. if you were to do a fresh checkout of this branch would the file be present)
Returns the file status. This is either A (added), D (deleted), M (modified), (exists, not modified) or undef (doesn't exist).
A
D
M
Bugs may be submitted through https://github.com/maxmind/App-GHPT/issues.
Mark Fowler <mark@twoshortplanks.com>
Dave Rolsky <autarch@urth.org>
This software is Copyright (c) 2017 by MaxMind, Inc.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
To install App::GHPT, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::GHPT
CPAN shell
perl -MCPAN -e shell install App::GHPT
For more information on module installation, please visit the detailed CPAN module installation guide.