]> source.dussan.org Git - jgit.git/commit
Add method to read time unit from config 64/76864/3
authorHugo Arès <hugo.ares@ericsson.com>
Fri, 3 Jun 2016 13:11:58 +0000 (09:11 -0400)
committerMatthias Sohn <matthias.sohn@sap.com>
Tue, 12 Jul 2016 09:32:49 +0000 (11:32 +0200)
commitc1ca9cc80004b4eaa90f18a8fea251d565304e56
tree975ff7a9b7f531ddc036875b73759c4638ac3328
parent7a6582c09c4ded97444e31c690293fc5df69114b
Add method to read time unit from config

Time units supported:

-milliseconds (1 ms, 2 milliseconds)
-seconds (1 s, 1 sec, 1 second, 2 seconds)
-minutes (1 m, 1 min, 1 minute, 2 minutes)
-hours (1 h, 1 hr, 1 hour, 2 hours)
-days (1 d, 1 day, 2 days)
-weeks (1 w, 1 week, 2 weeks)
-months (1 mon, 1 month, 2 months)
-years (1 y, 1 year, 2 years)

This functionality is implemented in Gerrit ConfigUtil class. Add it to
JGit so it can eventually be remove from Gerrit.

Change-Id: I2d6564ff656b6ab9424a9360624061c94fd5f413
Signed-off-by: Hugo Arès <hugo.ares@ericsson.com>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/ConfigTest.java
org.eclipse.jgit/.settings/.api_filters
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/lib/Config.java