2012-09-26 104 views

回答

13

像這樣:

RevCommit commit = ...; 

PersonIdent authorIdent = commit.getAuthorIdent(); 
Date authorDate = authorIdent.getWhen(); 
TimeZone authorTimeZone = authorIdent.getTimeZone(); 

PersonIdent committerIdent = commit.getCommitterIdent(); 
... 

另見API documentation

+2

哇,比我想象的要簡單。根據我的經驗,JGit有時候並不是最直觀的。再次感謝! – Coder