confirmdiff: View a diff and confirm via exit code