]> source.dussan.org Git - jgit.git/commit
Add a getter for a list of RefSpecs to Config 23/103423/3
authorThomas Wolf <thomas.wolf@paranor.ch>
Tue, 22 Aug 2017 07:02:31 +0000 (09:02 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Sat, 26 Aug 2017 07:11:02 +0000 (09:11 +0200)
commit8cbdf523cd60813f69dddece5393c321e5dbe037
treefabfc61c7a97321c20006270e7a4f75fd097a6fe
parentd32ad1cadd4fcbf908d48b20f6b16e96338c89e2
Add a getter for a list of RefSpecs to Config

Reading RefSpecs from a Config can be seen as another typed value
conversion, so add a getter to Config and to TypedConfigGetter. Use
it in RemoteConfig.

Doing this allows clients of the JGit library to customize the
handling of invalid RefSpecs in git config files by installing a
custom TypedConfigGetter.

Bug: 517314
Change-Id: I0ebc0f073fabc85c2a693b43f5ba5962d8a795ff
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
org.eclipse.jgit/src/org/eclipse/jgit/lib/Config.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/DefaultTypedConfigGetter.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/TypedConfigGetter.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/RemoteConfig.java