emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] scratch/dired-git-info 2d57f89 12/33: Check for non existing file


From: Clemens Radermacher
Subject: [elpa] scratch/dired-git-info 2d57f89 12/33: Check for non existing files
Date: Sun, 17 Feb 2019 13:03:29 -0500 (EST)

branch: scratch/dired-git-info
commit 2d57f8917e79fdb8a6c8246535e45c527c462b65
Author: Clemens Radermacher <address@hidden>
Commit: Clemens Radermacher <address@hidden>

    Check for non existing files
---
 dired-git-info.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dired-git-info.el b/dired-git-info.el
index 5b801d1..27c087a 100644
--- a/dired-git-info.el
+++ b/dired-git-info.el
@@ -260,7 +260,7 @@ info format and defaults to `dgi-commit-message-format'."
   (if (not (locate-dominating-file "." ".git"))
       (user-error "Not inside a git repo")
     (let* ((file (or file (dired-get-file-for-visit)))
-           (lfile (and file
+           (lfile (and (file-exists-p file)
                        ;; get the actual displayed name, to make it work with
                        ;; dired collapse for example
                        (save-excursion



reply via email to

[Prev in Thread] Current Thread [Next in Thread]