convert to Kotlin — post cleanup
fix "added file is not marked as added" — don't use ugly jgit DirCacheBuilder, now we use more straightforward DirCacheEditor