diff options
author | Han-Wen NIenhuys <hanwen@google.com> | 2022-08-01 13:07:29 -0400 |
---|---|---|
committer | Gerrit Code Review @ Eclipse.org <gerrit@eclipse.org> | 2022-08-01 13:07:29 -0400 |
commit | e030b106c574acf2d0feaee0a9e900d0763d6ee2 (patch) | |
tree | 139e736b7907f7ae7718b220988b7d0ee2904204 | |
parent | 688c83d93ae0c230d22bb689b1c81184e002094c (diff) | |
parent | 8a3a6a99af4dace046324dae2bc648d5aec0ee19 (diff) | |
download | jgit-e030b106c574acf2d0feaee0a9e900d0763d6ee2.tar.gz jgit-e030b106c574acf2d0feaee0a9e900d0763d6ee2.zip |
Merge "Document TreeWalk#min()"
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/treewalk/TreeWalk.java | 8 |
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; |