public String generateGerritGitwebCommitUrl(@NotNull String gerritUrl, @NotNull String ref) throws GerritException {
    """
	Generate an https URL generated from the 'git clone' Gerrit url.
	The url generated points to the specific commit based on the ref. If ref is a branch,
	it'll point to the latest commit
	
	@param gerritUrl 'git clone' gerrit url. Can be http or git+ssh
	
	@param ref this is used to generate a Gerrit gitweb url to the ref
	
	@return Gerrit Gitweb URL
    """

        return MessageFormat.format(GERRIT_GITWEB_COMMIT_URL_TEMPLATE, getHost(gerritUrl), getProject(gerritUrl), ref);
    }
public String generateGerritGitwebCommitUrl(@NotNull String gerritUrl, @NotNull String ref) throws GerritException {

        return MessageFormat.format(GERRIT_GITWEB_COMMIT_URL_TEMPLATE, getHost(gerritUrl), getProject(gerritUrl), ref);
    }
public String generateGerritGitwebCommitUrl ( @ NotNull String gerritUrl , @ NotNull String ref ) throws GerritException { return MessageFormat . format ( GERRIT_GITWEB_COMMIT_URL_TEMPLATE , getHost ( gerritUrl ) , getProject ( gerritUrl ) , ref ) ; }
Generate an https URL generated from the 'git clone' Gerrit url.
The url generated points to the specific commit based on the ref. If ref is a branch,
it'll point to the latest commit

@param gerritUrl 'git clone' gerrit url. Can be http or git+ssh

@param ref this is used to generate a Gerrit gitweb url to the ref

@return Gerrit Gitweb URL
Generate an https URL generated from the git clone Gerrit url . The url generated points to the specific commit based on the ref . If ref is a branch it ll point to the latest commit