private function parseLogsIntoArray($logOutput)
    {
    	$commits = array();
    	foreach(explode("\n", $logOutput) as $line) {
    		$infos = explode('|', $line);
    		$commits[] = array(
    				'id' => $infos[0],
    				'tree' => $infos[1],
    				'author' => array(
    						'name' => $infos[2],
    						'email' => $infos[3]
    				),
    				'authored_date' => $infos[4],
    				'commiter' => array(
    						'name' => $infos[5],
    						'email' => $infos[6]
    				),
    				'committed_date' => $infos[7],
    				'message' => $infos[8]
    		);
    	}
    	return $commits;
    }
private function parseLogsIntoArray($logOutput)
    {
    	$commits = array();
    	foreach(explode("\n", $logOutput) as $line) {
    		$infos = explode('|', $line);
    		$commits[] = array(
    				'id' => $infos[0],
    				'tree' => $infos[1],
    				'author' => array(
    						'name' => $infos[2],
    						'email' => $infos[3]
    				),
    				'authored_date' => $infos[4],
    				'commiter' => array(
    						'name' => $infos[5],
    						'email' => $infos[6]
    				),
    				'committed_date' => $infos[7],
    				'message' => $infos[8]
    		);
    	}
    	return $commits;
    }
private function parseLogsIntoArray ( $ logOutput ) { $ commits = array ( ) ; foreach ( explode ( "\n" , $ logOutput ) as $ line ) { $ infos = explode ( '|' , $ line ) ; $ commits [ ] = array ( 'id' => $ infos [ 0 ] , 'tree' => $ infos [ 1 ] , 'author' => array ( 'name' => $ infos [ 2 ] , 'email' => $ infos [ 3 ] ) , 'authored_date' => $ infos [ 4 ] , 'commiter' => array ( 'name' => $ infos [ 5 ] , 'email' => $ infos [ 6 ] ) , 'committed_date' => $ infos [ 7 ] , 'message' => $ infos [ 8 ] ) ; } return $ commits ; }
Convert a formatted log string into an array
@param string $logOutput The output from a `git log` command formated using $this->logFormat
Convert a formatted log string into an array