Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHan-Wen NIenhuys2022-08-01 17:07:29 +0000
committerGerrit Code Review @ Eclipse.org2022-08-01 17:07:29 +0000
commite030b106c574acf2d0feaee0a9e900d0763d6ee2 (patch)
tree139e736b7907f7ae7718b220988b7d0ee2904204
parent688c83d93ae0c230d22bb689b1c81184e002094c (diff)
parent8a3a6a99af4dace046324dae2bc648d5aec0ee19 (diff)
downloadjgit-e030b106c574acf2d0feaee0a9e900d0763d6ee2.tar.gz
jgit-e030b106c574acf2d0feaee0a9e900d0763d6ee2.tar.xz
jgit-e030b106c574acf2d0feaee0a9e900d0763d6ee2.zip
Merge "Document TreeWalk#min()"
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/treewalk/TreeWalk.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/treewalk/TreeWalk.java b/org.eclipse.jgit/src/org/eclipse/jgit/treewalk/TreeWalk.java
index 8269666d26..ece945232e 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/treewalk/TreeWalk.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/treewalk/TreeWalk.java
@@ -1375,6 +1375,14 @@ public class TreeWalk implements AutoCloseable, AttributesProvider {
System.arraycopy(tmp, 0, trees, 0, trees.length);
}
+ /**
+ * Returns an AbstractTreeIterator from {@code trees} with the smallest name, and sets its
+ * {@code matches} field. This may clobber {@code matches} in other {@code tree}s. Other iterators
+ * at the same name will have their {@code matches} pointing to the same {@code min()} value.
+ *
+ * @return the smallest tree iterator available.
+ * @throws CorruptObjectException
+ */
@SuppressWarnings("unused")
AbstractTreeIterator min() throws CorruptObjectException {
int i = 0;

Back to the top