Replace existing code with JGitUtil#getRevCommitFromId().

This commit is contained in:
takezoe
2013-05-05 01:37:31 +09:00
parent a4123eae74
commit 4f92ceb550
2 changed files with 5 additions and 16 deletions

View File

@@ -34,9 +34,9 @@ object JGitUtil {
* @param commitId the ObjectId of the commit
* @return the RevCommit for the specified commit
*/
def getRevCommitFromId(git: Git, commmitId: ObjectId): RevCommit = {
def getRevCommitFromId(git: Git, commitId: ObjectId): RevCommit = {
val revWalk = new RevWalk(git.getRepository)
val revCommit = revWalk.parseCommit(commmitId)
val revCommit = revWalk.parseCommit(commitId)
revWalk.dispose
revCommit
}