backend/components/AGitRepository.php
/**
	 * Switches to the given branch
	 * @param string $branchName the name of the branch to check out
	 * @param boolean $create whether to create the branch or not
	 * @param boolean $force whether to force the checkout or not
	 * @return string the response of the checkout
	 */
Switches to the given branch
@param string $branchName the name of the branch to check out
@param boolean $create whether to create the branch or not
@param boolean $force whether to force the checkout or not
@return string the response of the checkout
Switches to the given branch @param string $branchName the name of the branch to check out @param boolean $create whether to create the branch or not @param boolean $force whether to force the checkout or not @return string the response of the checkout
public function checkout($branchName, $create = false, $force = false)
	{
		$command = "checkout ";
		if ($create) {
			$command .= "-b ";
		}
		if ($force) {
			$command .= "-f ";
		}
		$command .= $branchName;
		$this->_branches = null;
		return $this->run($command);
	}
public function checkout ( $ branchName , $ create = false , $ force = false ) { $ command = " checkout  " ; if ( $ create ) { $ command .= " -b  " ; } if ( $ force ) { $ command .= " -f  " ; } $ command .= $ branchName ; $ this -> _branches = null ; return $ this -> run ( $ command ) ; }
Switches to the given branch
 @param string $branchName the name of the branch to check out
 @param boolean $create whether to create the branch or not
 @param boolean $force whether to force the checkout or not
 @return string the response of the checkout
Switches to the given branch @param string $branchName the name of the branch to check out @param boolean $create whether to create the branch or not @param boolean $force whether to force the checkout or not @return string the response of the checkout