ls-files: convert write_eolinfo to take an index