onCommit

open override fun onCommit(commits: MutableList<out IndexCommit>)

Deletes all commits except the most recent one.