本文整理匯總了Java中com.atlassian.bamboo.commit.CommitFile類的典型用法代碼示例。如果您正苦於以下問題:Java CommitFile類的具體用法?Java CommitFile怎麽用?Java CommitFile使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
CommitFile類屬於com.atlassian.bamboo.commit包,在下文中一共展示了CommitFile類的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getWebRepositoryUrlForDiff
import com.atlassian.bamboo.commit.CommitFile; //導入依賴的package包/類
@Nullable
@Override
public String getWebRepositoryUrlForDiff(CommitFile file, RepositoryData repositoryData) {
// GitLab doesn't currently support per-file diffs, so just link to the commit view
// http://feedback.gitlab.com/forums/176466-general/suggestions/4300635-option-to-compare-specific-files-directories-in-th
// TODO submit per-file diff support to gitlab
return getWebRepositoryUrlForRevision(file.getRevision(), repositoryData);
}
示例2: getWebRepositoryUrlForFile
import com.atlassian.bamboo.commit.CommitFile; //導入依賴的package包/類
@Nullable
@Override
public String getWebRepositoryUrlForFile(@NotNull CommitFile file, RepositoryData repositoryData) {
return urlConcat(getWebRepositoryUrl(), "blob/master/", file.getName());
}
示例3: getWebRepositoryUrlForRevision
import com.atlassian.bamboo.commit.CommitFile; //導入依賴的package包/類
@Nullable
@Override
public String getWebRepositoryUrlForRevision(CommitFile file, RepositoryData repositoryData) {
return urlConcat(getWebRepositoryUrl(), "blob/", file.getRevision(), "/", file.getName());
}