@Test public void testBranch() throws Exception { try (GitConfigSource source = GitConfigSource .builder() .path("application.properties") .uri(URI.create(fileUri())) .branch("test") .build()) { source.init(null); ObjectNode root = ConfigParsers.properties().parse(source.load().get()); assertThat(root.get("greeting"), valueNode("hello")); } }
public GitConfigSourceBuilder branch(String branch) { this.branch = branch; return this; }
GitConfigSourceBuilder extends AbstractConfigSourceBuilder<GitConfigSourceBuilder, GitConfigSourceBuilder.GitEndpoint> implements Builder<GitConfigSource>,
                   PollableSource.Builder<GitConfigSourceBuilder>,
                   ParsableSource.Builder<GitConfigSourceBuilder> { public GitConfigSourceBuilder branch(String branch) { this.branch = branch; return this; } }
GitConfigSourceBuilder extends AbstractConfigSourceBuilder<GitConfigSourceBuilder, GitConfigSourceBuilder.GitEndpoint> implements Builder<GitConfigSource>,
                   PollableSource.Builder<GitConfigSourceBuilder>,
                   ParsableSource.Builder<GitConfigSourceBuilder> { public GitConfigSourceBuilder branch(String branch) { this.branch = branch; return this; } GitConfigSourceBuilder(); }
GitConfigSourceBuilder extends AbstractConfigSourceBuilder<GitConfigSourceBuilder, GitConfigSourceBuilder.GitEndpoint> implements Builder<GitConfigSource>,
                   PollableSource.Builder<GitConfigSourceBuilder>,
                   ParsableSource.Builder<GitConfigSourceBuilder> { public GitConfigSourceBuilder branch(String branch) { this.branch = branch; return this; } GitConfigSourceBuilder(); GitConfigSourceBuilder path(String path); @Override GitConfigSource build(); @Override GitConfigSourceBuilder config(Config metaConfig); @Override GitConfigSourceBuilder parser(ConfigParser parser); @Override GitConfigSourceBuilder mediaType(String mediaType); @Override GitConfigSourceBuilder pollingStrategy(PollingStrategy pollingStrategy); GitConfigSourceBuilder branch(String branch); GitConfigSourceBuilder directory(Path directory); GitConfigSourceBuilder uri(URI uri); GitConfigSourceBuilder credentials(String user, String password); GitConfigSourceBuilder credentialsProvider(CredentialsProvider credentialsProvider); }
GitConfigSourceBuilder extends AbstractConfigSourceBuilder<GitConfigSourceBuilder, GitConfigSourceBuilder.GitEndpoint> implements Builder<GitConfigSource>,
                   PollableSource.Builder<GitConfigSourceBuilder>,
                   ParsableSource.Builder<GitConfigSourceBuilder> { public GitConfigSourceBuilder branch(String branch) { this.branch = branch; return this; } GitConfigSourceBuilder(); GitConfigSourceBuilder path(String path); @Override GitConfigSource build(); @Override GitConfigSourceBuilder config(Config metaConfig); @Override GitConfigSourceBuilder parser(ConfigParser parser); @Override GitConfigSourceBuilder mediaType(String mediaType); @Override GitConfigSourceBuilder pollingStrategy(PollingStrategy pollingStrategy); GitConfigSourceBuilder branch(String branch); GitConfigSourceBuilder directory(Path directory); GitConfigSourceBuilder uri(URI uri); GitConfigSourceBuilder credentials(String user, String password); GitConfigSourceBuilder credentialsProvider(CredentialsProvider credentialsProvider);  }