Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 773 Bytes

get_short_message.rst

File metadata and controls

32 lines (21 loc) · 773 Bytes
.. index::
   single: getShortMessage (Git\Commit method)


Git\Commit::getShortMessage

Description

public Git\Commit::getShortMessage ()

Parameters

Return Values

Examples

<?php
$repo = new Git\Repository("/path/repository");
$ref  = $repo->lookupRef("refs/heads/master");
$commit = $repo->getCommit($ref->getId());
$message = $commit->getShortMessage();

See Also