src/Util/GitRepo.php
public function list_tags($pattern = null) {
		$tagArray = explode("\n", $this->run("tag -l $pattern"));
		foreach ($tagArray as $i => &$tag) {
			$tag = trim($tag);
			if ($tag == '') {
				unset($tagArray[$i]);
			}
		}

		return $tagArray;
	}
public function list_tags($pattern = null) {
		$tagArray = explode("\n", $this->run("tag -l $pattern"));
		foreach ($tagArray as $i => &$tag) {
			$tag = trim($tag);
			if ($tag == '') {
				unset($tagArray[$i]);
			}
		}

		return $tagArray;
	}
public function list_tags ( $ pattern = null ) { $ tagArray = explode ( "\n" , $ this -> run ( "tag -l $pattern" ) ) ; foreach ( $ tagArray as $ i => & $ tag ) { $ tag = trim ( $ tag ) ; if ( $ tag == '' ) { unset ( $ tagArray [ $ i ] ) ; } } return $ tagArray ; }
List all the available repository tags.

Optionally, accept a shell wildcard pattern and return only tags matching it.

@access	public
@param	string	$pattern	Shell wildcard pattern to match tags against.
@return	array				Available repository tags.
List all the available repository tags .