class_docstr: Helper class to wrap the git and git-lfs commands.
  
  The aim is to facilitate interacting with huggingface.co hosted model or
  dataset repos, though not a lot here (if any) is actually specific to
  huggingface.co.
  
  <Tip warning={true}>
  
  [`Repository`] is deprecated in favor of the http-based alternatives implemented in
  [`HfApi`]. Given its large adoption in legacy code, the complete removal of
  [`Repository`] will only happen in release `v1.0`. For more details, please read
  https://huggingface.co/docs/huggingface_hub/concepts/git_vs_http.
  
  </Tip>
class_docstr_tok: ["Helper","class","to","wrap","the","git","and","git-lfs","commands",".","The","aim","is","to","facilitate","interacting","with","huggingface.co","hosted","model","or","dataset","repos",",","though","not","a","lot","here","(","if","any",")","is","actually","specific","to","huggingface.co",".","<","Tip","warning=","{","true","}",">","[","`","Repository","`","]","is","deprecated","in","favor","of","the","http-based","alternatives","implemented","in","[","`","HfApi","`","]",".","Given","its","large","adoption","in","legacy","code",",","the","complete","removal","of","[","`","Repository","`","]","will","only","happen","in","release","`","v1.0","`",".","For","more","details",",","please","read","https",":","\/\/huggingface.co\/docs\/huggingface_hub\/concepts\/git_vs_http",".","<","\/Tip",">"]
docstr: Returns a list of the files that are deleted in the working directory or
  index.
  
  Returns:
      `List[str]`: A list of files that have been deleted in the working
      directory or index.
docstr_tok: ["Returns","a","list","of","the","files","that","are","deleted","in","the","working","directory","or","index",".","Returns",":","`","List","[","str","]","`",":","A","list","of","files","that","have","been","deleted","in","the","working","directory","or","index","."]
code: def list_deleted_files(self) -> List[str]:
      """
      Returns a list of the files that are deleted in the working directory or
      index.
  
      Returns:
          `List[str]`: A list of files that have been deleted in the working
          directory or index.
      """
      try:
          git_status = run_subprocess(
              "git status -s", self.local_dir
          ).stdout.strip()
      except subprocess.CalledProcessError as exc:
          raise EnvironmentError(exc.stderr)
  
      if len(git_status) == 0:
          return []
  
      # Receives a status like the following
      #  D .gitignore
      #  D new_file.json
      # AD new_file1.json
      # ?? new_file2.json
      # ?? new_file4.json
  
      # Strip each line of whitespaces
      modified_files_statuses = [
          status.strip() for status in git_status.split("\n")
      ]
  
      # Only keep files that are deleted using the D prefix
      deleted_files_statuses = [
          status
          for status in modified_files_statuses
          if "D" in status.split()[0]
      ]
  
      # Remove the D prefix and strip to keep only the relevant filename
      deleted_files = [
          status.split()[-1].strip()
          for status in deleted_files_statuses
      ]
  
      return deleted_files
  
imports: import atexit
  import os
  import re
  import subprocess
  import threading
  import time
  from contextlib import contextmanager
  from pathlib import Path
  from typing import Callable, Dict, Iterator, List, Optional, Tuple, TypedDict, Union
  from urllib.parse import urlparse
  from huggingface_hub.constants import REPO_TYPES_URL_PREFIXES, REPOCARD_NAME
  from huggingface_hub.repocard import metadata_load, metadata_save
  from .hf_api import HfApi, repo_type_and_id_from_hf_id
  from .lfs import LFS_MULTIPART_UPLOAD_COMMAND
  from .utils import SoftTemporaryDirectory, get_token, logging, run_subprocess, tqdm, validate_hf_hub_args
  from .utils._deprecation import _deprecate_method
label_desc: Use image node_id 10 for calling the Repository obj's underlying member method code with example usage: obj.list_deleted_files() and returns: deleted_files, list