diff options
author | Han-Wen Nienhuys <hanwen@google.com> | 2022-08-01 15:39:07 +0200 |
---|---|---|
committer | Han-Wen Nienhuys <hanwen@google.com> | 2022-08-01 17:21:49 +0200 |
commit | 8a3a6a99af4dace046324dae2bc648d5aec0ee19 (patch) | |
tree | 4c86d6803793046f9f34458fd6c9e244a4cf189a /org.eclipse.jgit | |
parent | 3bec0b56a556e6a513e990e8e84165ce6387ef53 (diff) | |
download | jgit-8a3a6a99af4dace046324dae2bc648d5aec0ee19.tar.gz jgit-8a3a6a99af4dace046324dae2bc648d5aec0ee19.zip |
Document TreeWalk#min()
Change-Id: I29a6c023929d8270a8cdd1e7f012817a06428f42
Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
Diffstat (limited to 'org.eclipse.jgit')
-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; |