convert: convert convert_to_git_filter_fd to take an index