final StoredConfig repoConfig = repo.getConfig(); for (String name : repoConfig.getNames( ConfigConstants.CONFIG_BRANCH_SECTION, shortOldName)) { String[] values = repoConfig.getStringList(
/** * * @param prefixName * @return If a specific prefix has been configured */ public boolean hasPrefixConfigured(String prefixName) { Set<String> entries = git.getRepository().getConfig().getNames(JGitFlowConstants.SECTION, JGitFlowConstants.PREFIX_SUB); return entries.contains(prefixName); }
/** * @param prefixName * @return If a specific prefix has been configured */ public boolean hasPrefixConfigured(String prefixName) { Set<String> entries = git.getRepository().getConfig().getNames(JGitFlowConstants.SECTION, JGitFlowConstants.PREFIX_SUB); return entries.contains(prefixName); }
/** * @param prefixName * @return If a specific prefix has been configured */ public boolean hasPrefixConfigured(String prefixName) { Set<String> entries = git.getRepository().getConfig().getNames(JGitFlowConstants.SECTION, JGitFlowConstants.PREFIX_SUB); return entries.contains(prefixName); }
/** * @return if all of the prefixes have been configured */ public boolean hasPrefixesConfigured() { Set<String> entries = git.getRepository().getConfig().getNames(JGitFlowConstants.SECTION, JGitFlowConstants.PREFIX_SUB); return entries.containsAll(getPrefixNames()); }
/** * @return if all of the prefixes have been configured */ public boolean hasPrefixesConfigured() { Set<String> entries = git.getRepository().getConfig().getNames(JGitFlowConstants.SECTION, JGitFlowConstants.PREFIX_SUB); return entries.containsAll(getPrefixNames()); }
/** * * @return if all of the prefixes have been configured */ public boolean hasPrefixesConfigured() { Set<String> entries = git.getRepository().getConfig().getNames(JGitFlowConstants.SECTION, JGitFlowConstants.PREFIX_SUB); return entries.containsAll(getPrefixNames()); }
private void list(StoredConfig config) throws IOException, ConfigInvalidException { config.load(); Set<String> sections = config.getSections(); for (String section : sections) { Set<String> names = config.getNames(section); for (String name : names) { for (String value : config.getStringList(section, null, name)) outw.println(section + "." + name + "=" + value); //$NON-NLS-1$ //$NON-NLS-2$ } if (names.isEmpty()) { for (String subsection : config.getSubsections(section)) { names = config.getNames(section, subsection); for (String name : names) { for (String value : config.getStringList(section, subsection, name)) outw.println(section + "." + subsection + "." //$NON-NLS-1$ //$NON-NLS-2$ + name + "=" + value); //$NON-NLS-1$ } } } } } }
for (String sectionItem : config.getNames(key)) { String sectionId = key + "." + sectionItem; //$NON-NLS-1$ PropertyDescriptor desc = new PropertyDescriptor(prefix for (String sectionItem : config.getNames(key, sub)) { String sectionId = key + "." + sub + "." + sectionItem; //$NON-NLS-1$ //$NON-NLS-2$ PropertyDescriptor desc = new PropertyDescriptor(prefix
final StoredConfig repoConfig = repo.getConfig(); for (String name : repoConfig.getNames( ConfigConstants.CONFIG_BRANCH_SECTION, shortOldName)) { String[] values = repoConfig.getStringList(
final StoredConfig repoConfig = repo.getConfig(); for (String name : repoConfig.getNames( ConfigConstants.CONFIG_BRANCH_SECTION, shortOldName)) { String[] values = repoConfig.getStringList(