JGit how do i get the SHA1 from a RevCommit?
This seems like an idiotic question, but I can't find documentation on it anywhere. How do I get a the SHA1 of a RevCommit object? RevCommit inherits from AnyObjectId which has a getName function. getName public final String getName() Returns : string form of the SHA-1, in lower case hexadecimal. 来源: https://stackoverflow.com/questions/22276456/jgit-how-do-i-get-the-sha1-from-a-revcommit