ls-files: convert show_killed_files to take an index