本文整理匯總了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);
}