backend/components/AGitRepository.php
/**
	 * Adds the given tag to the repository
	 * @param string $name the name of the new tag
	 * @param string $message tag description
	 * @param string|AGitCommit $hash commit object or hash of a commit, if omitted will tag your current HEAD
	 * @return AGitTag|null the added tag, or null if the tag wasn't added
	 */
Adds the given tag to the repository
@param string $name the name of the new tag
@param string $message tag description
@param string|AGitCommit $hash commit object or hash of a commit, if omitted will tag your current HEAD
@return AGitTag|null the added tag, or null if the tag wasn't added
Adds the given tag to the repository @param string $name the name of the new tag @param string $message tag description @param string|AGitCommit $hash commit object or hash of a commit if omitted will tag your current HEAD @return AGitTag|null the added tag or null if the tag wasn ' t added
public function addTag($name, $message, $hash = null)
	{
		if ($hash instanceof AGitCommit) {
			$hash = $hash->hash;
		}
		$command = "tag";
		if (is_string($message)) {
			$command .= " -m '".addslashes($message)."'";
		}
		$command .= " ".$name;
		if (is_string($hash)) {
			$command .= " ".$hash;
		}
		$this->run($command);
		$this->_tags = null;
		$tag = $this->getTag($name);
		return $tag;
	}
public function addTag ( $ name , $ message , $ hash = null ) { if ( $ hash instanceof AGitCommit ) { $ hash = $ hash -> hash ; } $ command = " tag " ; if ( is_string ( $ message ) ) { $ command .= "  -m ' " . addslashes ( $ message ) . " ' " ; } $ command .= " " . $ name ; if ( is_string ( $ hash ) ) { $ command .= " " . $ hash ; } $ this -> run ( $ command ) ; $ this -> _tags = null ; $ tag = $ this -> getTag ( $ name ) ; return $ tag ; }
Adds the given tag to the repository
 @param string $name the name of the new tag
 @param string $message tag description
 @param string|AGitCommit $hash commit object or hash of a commit, if omitted will tag your current HEAD
 @return AGitTag|null the added tag, or null if the tag wasn't added
Adds the given tag to the repository @param string $name the name of the new tag @param string $message tag description @param string|AGitCommit $hash commit object or hash of a commit if omitted will tag your current HEAD @return AGitTag|null the added tag or null if the tag wasn ' t added