backend/components/AGitCommit.php
/**
	 * Loads the metadata for the commit
	 */
Loads the metadata for the commit
Loads the metadata for the commit
protected function loadData()
	{
		$delimiter = "|||---|||---|||";
		$command = 'show --pretty=format:"%an'.$delimiter.'%ae'.$delimiter.'%cd'.$delimiter.'%s'.$delimiter.'%B'.$delimiter.'%N" ' . $this->hash;
		$response = $this->repository->run($command);
		$parts = explode($delimiter,$response);
		$this->_authorName = array_shift($parts);
		$this->_authorEmail = array_shift($parts);
		$this->_time = array_shift($parts);
		$this->_subject = array_shift($parts);
		$this->_message = array_shift($parts);
		$this->_notes = array_shift($parts);
	}
protected function loadData ( ) { $ delimiter = " |||---|||---||| " ; $ command = 'show --pretty=format:"%an' . $ delimiter . '%ae' . $ delimiter . '%cd' . $ delimiter . '%s' . $ delimiter . '%B' . $ delimiter . '%N" ' . $ this -> hash ; $ response = $ this -> repository -> run ( $ command ) ; $ parts = explode ( $ delimiter , $ response ) ; $ this -> _authorName = array_shift ( $ parts ) ; $ this -> _authorEmail = array_shift ( $ parts ) ; $ this -> _time = array_shift ( $ parts ) ; $ this -> _subject = array_shift ( $ parts ) ; $ this -> _message = array_shift ( $ parts ) ; $ this -> _notes = array_shift ( $ parts ) ; }
Loads the metadata for the commit
Loads the metadata for the commit