[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[jgit-dev] commit hash as a hex string
- From: CG <cg@xxxxxxxxx>
- Date: Sat, 14 Jul 2012 20:27:02 +0200
- Delivered-to: email@example.com
### Problem: Given
RevCommit commitId = ...
>From this I want to get the commit id in a string in hex format.
### Attempt 1
gives the hex + additional information, such as commit-time that I don't
want in the string.
### Attempt 2
same result as attempt 1
Of course, I can solve this in an ugly way by doing some regex matching,
but probably there is a more elegant way.