Community
Participate
Working Groups
The sets that keep the information about changed/added/removed/... files in org.eclipse.jgit.lib.IndexDiff should be LinkedHashSets. As oppsed to HashSets, they are sorted by insertion, so if you iterate over them, you will get the contents in the order in which they were inserted by the TreeWalk.