KeepOnlyLastCommitDeletionPolicy

This IndexDeletionPolicy implementation that keeps only the most recent commit and immediately removes all prior commits after a new commit is done. This is the default deletion policy.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun onCommit(commits: MutableList<out IndexCommit>)

Deletes all commits except the most recent one.

Link copied to clipboard
open override fun onInit(commits: MutableList<out IndexCommit>)

Deletes all commits except the most recent one.