logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

App::KGB::Commit - a single commit

Constructor

new({initialfieldvalues})
       Standard constructor. Accepts a hashref with field values.

Description

App::KGB::Change encapsulates a single commit. A commit has several properties: an ID, a list of changes,
       an author, a log message, optionally also a branch and a module.

Fields

id  The commit ID that uniquely identifies it in the repository (if applicable).

       changes
           An arrayref of App::KGB::Change instances or other objects that behave as strings.

       authorlogbranchmodule

Name

       App::KGB::Commit - a single commit

Overloads

       stringify
           Returns a text representation of the commit object

perl v5.40.0                                       2024-09-20                              App::KGB::Commit(3pm)

Synopsis

           my $c = App::KGB::Commit->new(
               {   id      => 4536,
                   changes => ["(M)/there"],
                   log     => "fixed /there",
                   author  => "My Self <mself@here.at>",
                   branch  => "trunk",
                   module  => "test",
               }
           );

See Also