You are right Chis, I've already push a change I441db34f226be36548c61cef77958995971498de that adds support for dir reset. But in time when I was extracting this code from StageView class I didn't really think about fixing jgit