class_docstr: File-based Code Driver handles source control management for the project with files
      
class_docstr_tok: ["File-based","Code","Driver","handles","source","control","management","for","the","project","with","files"]
docstr: List all commits in repo
  
  Raises
  ------
  CodeNotInitialized
      error if not initialized (must initialize first)
docstr_tok: ["List","all","commits","in","repo","Raises","--","--","--","CodeNotInitialized","error","if","not","initialized","(","must","initialize","first",")"]
code: def list_refs(self):
      """List all commits in repo
  
      Raises
      ------
      CodeNotInitialized
          error if not initialized (must initialize first)
      """
      if not self.is_initialized:
          raise CodeNotInitialized()
      # List all files in the code directory (ignore directories)
      for _, _, commit_hashes in os.walk(self._code_filepath):
          return commit_hashes
  
imports: import os
  import shutil
  import errno
  import pathspec
  import tempfile
  import hashlib
  import checksumdir
  from datmo.core.util.misc_functions import list_all_filepaths
  from datmo.core.util.i18n import get
  from datmo.core.util.exceptions import PathDoesNotExist, FileIOError, UnstagedChanges, CodeNotInitialized, CommitDoesNotExist
  from datmo.core.controller.code.driver import CodeDriver
label_desc: Use image node_id 15 for calling the FileCodeDriver obj's underlying member method code with example usage: obj.list_refs() and returns: commit_hashes