public static ObjectId hashCommit(ObjectId treeId, List<ObjectId> parentIds, RevPerson author, RevPerson committer, String commitMessage) { return hash(h -> HashObjectFunnels.commit(h, treeId, parentIds, author, committer, commitMessage)); }
public static ObjectId hashCommit(@NonNull ObjectId treeId, @NonNull List<ObjectId> parentIds, @NonNull RevPerson author, @NonNull RevPerson committer, @NonNull String commitMessage) { final Hasher hasher = ObjectId.HASH_FUNCTION.newHasher(); HashObjectFunnels.commit(hasher, treeId, parentIds, author, committer, commitMessage); return ObjectId.create(hasher.hash().asBytes()); }
public static ObjectId hashCommit(ObjectId treeId, ImmutableList<ObjectId> parentIds, RevPerson author, RevPerson committer, String commitMessage) { return hash((h)->HashObjectFunnels.commit(h, treeId, parentIds, author, committer, commitMessage)); }