def store_modified_times
      @modified_times = {}

      staged_files = modified_files
      unstaged_files = Overcommit::GitRepo.modified_files(staged: false)

      (staged_files + unstaged_files).each do |file|
        next if Overcommit::Utils.broken_symlink?(file)
        next unless File.exist?(file) # Ignore renamed files (old file no longer exists)
        @modified_times[file] = File.mtime(file)
      end
    end
def store_modified_times
      @modified_times = {}

      staged_files = modified_files
      unstaged_files = Overcommit::GitRepo.modified_files(staged: false)

      (staged_files + unstaged_files).each do |file|
        next if Overcommit::Utils.broken_symlink?(file)
        next unless File.exist?(file) # Ignore renamed files (old file no longer exists)
        @modified_times[file] = File.mtime(file)
      end
    end
Stores the modification times for all modified files to make it appear like
 they never changed.

 This prevents (some) editors from complaining about files changing when we
 stash changes before running the hooks.