Liip\RMT\VCS\VCSInterface::getAllModificationsSince PHP Method

getAllModificationsSince() public method

Return the list of all modifications from the given tag until now
public getAllModificationsSince ( string $tag, boolean $color = true, boolean $noMergeCommits = false ) : array
$tag string
$color boolean
$noMergeCommits boolean
return array
    public function getAllModificationsSince($tag, $color = true, $noMergeCommits = false);

Usage Example

 /**
  * Gets hash of latest commit
  *
  * @return string
  */
 private function getCurrentCommitHash()
 {
     $colorOutput = false;
     $modifications = $this->vcs->getAllModificationsSince('HEAD~1', $colorOutput);
     $lastModification = reset($modifications);
     return substr($lastModification, 0, strpos($lastModification, ' '));
 }