branch: externals/diff-hl
commit d4934341a4bb3f6be190d69e39907b1ad7d77fbe
Author: Daniel Fleischer <[email protected]>
Commit: GitHub <[email protected]>
Fix: diff-hl-magit-post-refresh wrong file name
`git diff-tree` is used and it generated relative file names.
`buffer-file-name` generates full paths. Condition check always fails due to
these being different.
---
diff-hl.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/diff-hl.el b/diff-hl.el
index 37331acfb5..2eb7a34b53 100644
--- a/diff-hl.el
+++ b/diff-hl.el
@@ -1437,7 +1437,7 @@ The value of this variable is a mode line template as in
(backend (vc-backend file)))
(when backend
(cond
- ((member file modified-files)
+ ((member (file-name-nondirectory file) modified-files)
(when (memq (vc-state file) unmodified-states)
(vc-state-refresh file backend))
(diff-hl-update))