/** {@inheritDoc} */ public List<IndexEntry> getSubmodules( String treeIsh ) throws GitException, InterruptedException { List<IndexEntry> submodules = lsTree(treeIsh,true); // Remove anything that isn't a submodule for (Iterator<IndexEntry> it = submodules.iterator(); it.hasNext();) { if (!it.next().getMode().equals("160000")) { it.remove(); } } return submodules; }
public List<IndexEntry> getSubmodules(String treeIsh) throws GitException { List<IndexEntry> submodules = lsTree(treeIsh); // Remove anything that isn't a submodule for (Iterator<IndexEntry> it = submodules.iterator(); it.hasNext();) { if (!it.next().getMode().equals("160000")) { it.remove(); } } return submodules; }
public List<IndexEntry> getSubmodules(String treeIsh) throws GitException { List<IndexEntry> submodules = lsTree(treeIsh); // Remove anything that isn't a submodule for (Iterator<IndexEntry> it = submodules.iterator(); it.hasNext(); ) { if (!it.next().getMode().equals("160000")) { it.remove(); } } return submodules; }