Patch Set 5: I would prefer that you didn't submit this

This command doesn't work correctly in case of dirty working dirs. See the comments in http://dev.eclipse.org/mhonarc/lists/jgit-dev/msg00220.html. I'll propose a new patchset.