Bug 451316 - Make order of changed files reproducible
Summary: Make order of changed files reproducible
Status: NEW
Alias: None
Product: JGit
Classification: Technology
Component: JGit (show other bugs)
Version: 3.5.1   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-13 06:01 EST by Jochen Kemnade CLA
Modified: 2014-11-13 06:01 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jochen Kemnade CLA 2014-11-13 06:01:51 EST
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.