View on
MetaCPAN
Ricardo SIGNES > Dist-Zilla-Plugin-Git-1.121820 > Dist::Zilla::Role::Git::DirtyFiles

Download:
Dist-Zilla-Plugin-Git-1.121820.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

New  5
Open  13
View/Report Bugs
Module Version: 1.121820   Source   Latest Release: Dist-Zilla-Plugin-Git-2.043

NAME ^

Dist::Zilla::Role::Git::DirtyFiles - provide the allow_dirty & changelog attributes

VERSION ^

version 1.121820

DESCRIPTION ^

This role is used within the git plugin to work with files that are dirty in the local git checkout.

ATTRIBUTES ^

allow_dirty

A list of files that are allowed to be dirty in the git checkout. Defaults to dist.ini and the changelog (as defined per the changelog attribute.

changelog

The name of the changelog. Defaults to Changes.

METHODS ^

list_dirty_files

  my @dirty = $plugin->list_dirty_files($git, $listAllowed);

This returns a list of the modified or deleted files in $git, filtered against the allow_dirty attribute. If $listAllowed is true, only allowed files are listed. If it's false, only files that are not allowed to be dirty are listed.

In scalar context, returns the number of dirty files.

AUTHOR ^

Jerome Quelin

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2009 by Jerome Quelin.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: