本文整理汇总了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());
}