]> source.dussan.org Git - jgit.git/commit
Introduce ParseExceptions for GitDateParser 94/7794/1
authorChristian Halstrick <christian.halstrick@sap.com>
Mon, 17 Sep 2012 19:15:39 +0000 (21:15 +0200)
committerChristian Halstrick <christian.halstrick@sap.com>
Mon, 17 Sep 2012 20:41:06 +0000 (22:41 +0200)
commit84e171fbabd898ff46c714058d12a364c1b6499c
treec8e3a1151d600fac22f77b37d838d749d2f57892
parent27b791c591a8216a792ad72818e729d841fa53b3
Introduce ParseExceptions for GitDateParser

Instead of just returning null when something was not parseable we
should throw a real ParseException. This allows us to distinguish
between specifications which are unparseable and those which represent
no date (e.g. "never")

Change-Id: Ib3c1aa64b65ed0e0270791a365f2fa72ab78a3f4
org.eclipse.jgit.test/tst/org/eclipse/jgit/util/GitDateParserBadlyFormattedTest.java [new file with mode: 0644]
org.eclipse.jgit.test/tst/org/eclipse/jgit/util/GitDateParserTest.java
org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties
org.eclipse.jgit/src/org/eclipse/jgit/internal/JGitText.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/file/GC.java
org.eclipse.jgit/src/org/eclipse/jgit/util/GitDateParser.java