Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShawn O. Pearce2010-08-20 22:42:52 +0000
committerShawn O. Pearce2010-08-21 00:38:52 +0000
commitcf9537c8ceeed05b2cc7f996009d9f2f18623782 (patch)
tree71a50373a8e09febca750ed89e837affd62f952f /org.eclipse.jgit.junit/src
parent746ebda381b10a3dffa0b2fd83c4e5dd8585844f (diff)
downloadjgit-cf9537c8ceeed05b2cc7f996009d9f2f18623782.tar.gz
jgit-cf9537c8ceeed05b2cc7f996009d9f2f18623782.tar.xz
jgit-cf9537c8ceeed05b2cc7f996009d9f2f18623782.zip
Correct PersonIdent hashCode() and equals() to ignore milliseconds
Git doesn't store millisecond accuracy in person identity lines, so a line that we create in Java and round-trip through a Git object wouldn't compare as being equal. Truncate to seconds when comparing values to ensure the same identity is equal. Change-Id: Ie4ebde64061f52c612714e89ad34de8ac2694b07 Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'org.eclipse.jgit.junit/src')
0 files changed, 0 insertions, 0 deletions

Back to the top