backend/components/AGitRepository.php
/**
	 * Gets an array of paths that have differences
	 * between the index file and the current HEAD commit
	 * @return array the differences, filename => status
	 */
Gets an array of paths that have differences
between the index file and the current HEAD commit
@return array the differences, filename => status
Gets an array of paths that have differences between the index file and the current HEAD commit @return array the differences filename = > status
public function status()
	{
		$files = array();
                $this->run("config --global core.quotepath false");
                $output=$this->run("diff --name-only HEAD~1 ");
		if (empty($output)) {
			return $files;
		}
		foreach(explode("\n", $output) as $n => $line) {
			list($status, $file) = explode(' ', trim($line), 2);
			$status = trim($status);
			$file = trim($file);
			if ($file != "") {
				$files[$file] = $status;
			}
		}
		return $files;
	}
public function status ( ) { $ files = array ( ) ; $ this -> run ( " config --global core.quotepath false " ) ; $ output = $ this -> run ( " diff --name-only HEAD~1  " ) ; if ( empty ( $ output ) ) { return $ files ; } foreach ( explode ( " \n " , $ output ) as $ n => $ line ) { list ( $ status , $ file ) = explode ( ' ' , trim ( $ line ) , 2 ) ; $ status = trim ( $ status ) ; $ file = trim ( $ file ) ; if ( $ file != " " ) { $ files [ $ file ] = $ status ; } } return $ files ; }
Gets an array of paths that have differences
 between the index file and the current HEAD commit
 @return array the differences, filename => status
Gets an array of paths that have differences between the index file and the current HEAD commit @return array the differences filename = > status
//$output=$this->run("show --pretty=oneline"); //$output = $this->run("status --porcelain"); //$output = $this->run("status");