Allow diff and index commands to be interrupted