Git::Repository::Plugin::Status - Show the working tree status
# load the Status plugin use Git::Repository 'Status'; # get the status of all files, including ignored files my @status = Git::Repository->new->status('--ignored'); # print all tracked files for (@status) { say $_->path1 if $_->tracked; }
This module adds method status to module Git::Repository to get the status of a git working tree in form of Git::Repository::Status objects. See Git::Repository::Status for how to make use of the status information.
status
The following options to the git status command can be used:
Include untracked files with modes no, normal, or all.
no
normal
all
Include ignored files.
Ignore changes to submodules when looking for changes (none, untracked, dirty or all).
none
untracked
dirty
https://www.kernel.org/pub/software/scm/git/docs/git-status.html
Jakob Voß
This software is copyright (c) 2014 by Jakob Voß.
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 Git::Repository::Plugin::Status, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Git::Repository::Plugin::Status
CPAN shell
perl -MCPAN -e shell install Git::Repository::Plugin::Status
For more information on module installation, please visit the detailed CPAN module installation guide.