Git::Code::Review::Utilities - Tools for performing code review using Git as the backend
version 0.1
Returns the audit directory
Returns a copy of our configuration as a hash or hash ref.
Returns the Git::Repository object for audit or source repos
Takes a directory path as a list and creates the path inside the audit directory.
Lookup the remote 'origin' for 'audit' or 'source'
Reset the audit directory to origin:master, stash weirdness. Most operations call this first.
Push any modifications upstream.
Retrieves all relevant Git::Code::Review details on the commit that mataches the string passed in.
Mode can be: readonly, comment File is the file to be opened
View the contents of the commit in the $commit_info, stores time spent in editor as review_time in the hash.
$commit_info is a hash attained from gcr_commit_info() $state is a string representing the state $details can be either a string, the commit message, or a hash reference including a 'message' item to become the commit message. The rest of the keys will be added to the YAML generated.
Creates the YAML commit message. If $details{message} exists it will be used as the YAML header text/comment.
Returns true unless the author resigned from the commit.
Returns true unless the reviewer authored the commit.
Make coloring consistent in this function.
Figure out the review path from a file path.
Figure out the commit date.
Figure out the commit author.
Extract the SHA1 from the file path
Figure out the state from the current path.
Brad Lhotsky <brad@divisionbyzero.net>
This software is Copyright (c) 2014 by Brad Lhotsky.
This is free software, licensed under:
The (three-clause) BSD License
To install Git::Code::Review, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Git::Code::Review
CPAN shell
perl -MCPAN -e shell install Git::Code::Review
For more information on module installation, please visit the detailed CPAN module installation guide.