   (defvar watched-git-heads nil
     "A list of .git/logs/HEAD file to watcher mappings.")
 
-  (defun refresh-buffer-base-on-git-state ()
+  (defun refresh-git-backed-buffer ()
     "Refresh the current buffer base on the current git state."
     (if (and (boundp 'magit-mode) (derived-mode-p 'magit-mode))
         (magit-refresh-buffer)

                 (when (not (string-prefix-p " " (buffer-name buf)))
                   (with-current-buffer buf
                     (when (string-prefix-p vc-root (expand-file-name default-directory))
                       (refresh-buffer-base-on-git-state))))))))))))

  (defun watch-git-head ()
    (let ((file (buffer-file-name)))

            'append))

(use-package diff-hl
  :config
  (if (display-graphic-p)
      (diff-hl-flydiff-mode 1)
