private function hasGitDifferences($since)
    {
        /** @var \Platformsh\Cli\Service\Git $git */
        $git = $this->getService('git');
        $stat = $git->execute(['diff', '--numstat', $since . '...HEAD'], CLI_ROOT, true);
        if (!is_string($stat)) {
            return false;
        }

        foreach (explode("\n", trim($stat)) as $line) {
            // Exclude config.yaml and dist/manifest.json from the check.
            if (strpos($line, ' config.yaml') === false && strpos($line, ' dist/manifest.json') === false) {
                return true;
            }
        }

        return false;
    }
private function hasGitDifferences($since)
    {
        /** @var \Platformsh\Cli\Service\Git $git */
        $git = $this->getService('git');
        $stat = $git->execute(['diff', '--numstat', $since . '...HEAD'], CLI_ROOT, true);
        if (!is_string($stat)) {
            return false;
        }

        foreach (explode("\n", trim($stat)) as $line) {
            // Exclude config.yaml and dist/manifest.json from the check.
            if (strpos($line, ' config.yaml') === false && strpos($line, ' dist/manifest.json') === false) {
                return true;
            }
        }

        return false;
    }
private function hasGitDifferences ( $ since ) { /** @var \Platformsh\Cli\Service\Git $git */ $ git = $ this -> getService ( 'git' ) ; $ stat = $ git -> execute ( [ 'diff' , '--numstat' , $ since . '...HEAD' ] , CLI_ROOT , true ) ; if ( ! is_string ( $ stat ) ) { return false ; } foreach ( explode ( "\n" , trim ( $ stat ) ) as $ line ) { // Exclude config.yaml and dist/manifest.json from the check. if ( strpos ( $ line , ' config.yaml' ) === false && strpos ( $ line , ' dist/manifest.json' ) === false ) { return true ; } } return false ; }
Checks if there are relevant Git differences since the last version.

@param string      $since

@return bool
Checks if there are relevant Git differences since the last version .