code: def get_list_of_impacted_files(repo_dir: str) -> Sequence[str]:
      """
      Return the full list of impacted files, either in the index or the working tree,
      combined such that deletion and renamings are ignored properly.
      """
      files = set()
      for diff in get_index_diff_file_names(repo_dir):
          if diff.change_type not in {"D", "R"}:
              files.add(diff.file_name)
      for diff in get_working_diff_file_names(repo_dir):
          if diff.change_type != "D":
              files.add(diff.file_name)
          else:
              files.remove(diff.file_name)
      return list(files)
  
file_path: vissl/dev/lint_commit.py
imports: import argparse
  import os
  from typing import Iterable, NamedTuple, Sequence
label_desc: Use image node_id 4 for calling a global function with example usage: get_list_of_impacted_files(repo_dir) and returns: list