本文整理汇总了Java中org.eclipse.jgit.lib.ObjectId.toString方法的典型用法代码示例。如果您正苦于以下问题:Java ObjectId.toString方法的具体用法?Java ObjectId.toString怎么用?Java ObjectId.toString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.jgit.lib.ObjectId
的用法示例。
在下文中一共展示了ObjectId.toString方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getParents
import org.eclipse.jgit.lib.ObjectId; //导入方法依赖的package包/类
/**
* @return commit ids of this commit's parents
*/
public String[] getParents () {
String[] parents = new String[revCommit.getParentCount()];
for (int i = 0; i < revCommit.getParentCount(); ++i) {
parents[i] = ObjectId.toString(revCommit.getParent(i).getId());
}
return parents;
}
示例2: getMergedCommits
import org.eclipse.jgit.lib.ObjectId; //导入方法依赖的package包/类
private String[] getMergedCommits (MergeResult result) {
ObjectId[] mergedObjectIds = result.getMergedCommits();
String[] commits = new String[mergedObjectIds.length];
for (int i = 0; i < mergedObjectIds.length; ++i) {
commits[i] = ObjectId.toString(mergedObjectIds[i]);
}
return commits;
}
示例3: GitTag
import org.eclipse.jgit.lib.ObjectId; //导入方法依赖的package包/类
GitTag (String tagName, RevObject revObject) {
this.id = ObjectId.toString(revObject.getId());
this.name = tagName;
this.message = null;
this.taggedObject = id;
this.tagger = null;
this.type = getType(revObject);
this.lightWeight = true;
}
示例4: getRevision
import org.eclipse.jgit.lib.ObjectId; //导入方法依赖的package包/类
/**
* @return id of the commit
*/
public String getRevision () {
return ObjectId.toString(revCommit.getId());
}
示例5: getId
import org.eclipse.jgit.lib.ObjectId; //导入方法依赖的package包/类
/**
* @return commit id of the HEAD commit in the branch.
*/
public String getId () {
return ObjectId.toString(id);
}