protected function hasGitTrackedFilesChanged()
    {
        $task = $this->getGitBuildStack()
            ->exec("status --untracked-files=no --porcelain");

        /** @var Result $result */
        $result = $this->runSilentCommand($task);

        $changes = array_filter(
            explode("\n", $result->getMessage())
        );

        return (bool) count($changes) != 0;
    }
protected function hasGitTrackedFilesChanged()
    {
        $task = $this->getGitBuildStack()
            ->exec("status --untracked-files=no --porcelain");

        /** @var Result $result */
        $result = $this->runSilentCommand($task);

        $changes = array_filter(
            explode("\n", $result->getMessage())
        );

        return (bool) count($changes) != 0;
    }
protected function hasGitTrackedFilesChanged ( ) { $ task = $ this -> getGitBuildStack ( ) -> exec ( "status --untracked-files=no --porcelain" ) ; /** @var Result $result */ $ result = $ this -> runSilentCommand ( $ task ) ; $ changes = array_filter ( explode ( "\n" , $ result -> getMessage ( ) ) ) ; return ( bool ) count ( $ changes ) != 0 ; }
Has git tracked files changed.

@return bool
Has git tracked files changed .