Open
Description
Repro steps
- Create a new file in a repo (Git or Hg), open it.
- Enable
diff-hl-flydiff-mode
Expected
I can see highlights (all green for each line since they are new)
Actual
There is no highlight. Also, it makes Emacs slow.
Causes
- diff-hl tries to find the new file from the previous revision (around
(diff-hl-create-revision file revision)
) - Since the file does not exist in the previous revision, it throws an error.
- Hence, it does not show the diff highlights.
- Also, on every file modification, it repeats calling the expensive call the find the file from a previous revision.
Metadata
Metadata
Assignees
Labels
No labels