backend/components/AGitRepository.php
/**
	 * Determines whether the repository has a specific branch or not
	 * @param AGitBranch|string $branch a branch instance or the name of a branch
	 * @return boolean true if branch exists
	 */
Determines whether the repository has a specific branch or not
@param AGitBranch|string $branch a branch instance or the name of a branch
@return boolean true if branch exists
Determines whether the repository has a specific branch or not @param AGitBranch|string $branch a branch instance or the name of a branch @return boolean true if branch exists
public function hasBranch($branch)
	{
		if ($branch instanceof AGitBranch) {
			$branch = $branch->name;
		}
		$branches = $this->getBranches();
		return isset($branches[$branch]);
	}
public function hasBranch ( $ branch ) { if ( $ branch instanceof AGitBranch ) { $ branch = $ branch -> name ; } $ branches = $ this -> getBranches ( ) ; return isset ( $ branches [ $ branch ] ) ; }
Determines whether the repository has a specific branch or not
 @param AGitBranch|string $branch a branch instance or the name of a branch
 @return boolean true if branch exists
Determines whether the repository has a specific branch or not @param AGitBranch|string $branch a branch instance or the name of a branch @return boolean true if branch exists