The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Git::Repository::Status - Class representing git status data

VERSION

version 0.01

SYNOPSIS

    # load the Status plugin
        use Git::Repository 'Status';
 
        # get the status of all files
        my @status = Git::Repository->status('--ignored');
 
        # print all ignored files
        for (@status) {
            say $_->path if $_->ignored;
        }

DESCRIPTION

Instances of Git::Repository::Status represent a path in a git working tree with its status. The constructor should not be called directly but by calling the status method of Git::Repository, provided by Git::Repository::Plugin::Status.

ACCESSORS

index

Returns the status code of the path in the index, or the status code of side 1 in a merge conflict.

work

Returns the status code of the path in the work tree, or the status code of side 2 in a merge conflict.

path1

Returns the path of the status.

path2

Returns the path that path1 was copied or renamed to.

ignored

Returns true if the path is being ignored.

tracked

Returns true if the path is being tracked.

SEE ALSO

https://www.kernel.org/pub/software/scm/git/docs/git-status.html

AUTHOR

Jakob Voß

COPYRIGHT AND LICENSE

This software is copyright (c) 2013 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.