[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
- [elpa] branch scratch/dired-git-info created (now cd60dd4), Clemens Radermacher, 2019/02/17
- [elpa] scratch/dired-git-info fb1b475 02/33: Rename internal symbols accord. to elisp conventions, Clemens Radermacher, 2019/02/17
- [elpa] scratch/dired-git-info 19d9570 04/33: Fix macro name, Clemens Radermacher, 2019/02/17
- [elpa] scratch/dired-git-info 64901c7 11/33: Show error if not in a repo, Clemens Radermacher, 2019/02/17
- [elpa] scratch/dired-git-info 2374729 06/33: Update config instructions, Clemens Radermacher, 2019/02/17
- [elpa] scratch/dired-git-info 03c1711 19/33: Fixes according to checkdoc, Clemens Radermacher, 2019/02/17
- [elpa] scratch/dired-git-info 2d57f89 12/33: Check for non existing files,
Clemens Radermacher <=
- [elpa] scratch/dired-git-info e4090fa 01/33: Initial commit, Clemens Radermacher, 2019/02/17
- [elpa] scratch/dired-git-info 23b3d1e 18/33: Improve auto hide details, Clemens Radermacher, 2019/02/17
- [elpa] scratch/dired-git-info f7b5920 26/33: Improve dgi--get-commit-messages, Clemens Radermacher, 2019/02/17
- [elpa] scratch/dired-git-info 2e986ce 25/33: Allow command to run for dired derived modes, as well, Clemens Radermacher, 2019/02/17
- [elpa] scratch/dired-git-info 11a6cce 05/33: Update install instructions, Clemens Radermacher, 2019/02/17
- [elpa] scratch/dired-git-info 7803b82 16/33: Only mention some common options for message format docstring, Clemens Radermacher, 2019/02/17
- [elpa] scratch/dired-git-info f2117c8 28/33: Add .gitignore, Clemens Radermacher, 2019/02/17
- [elpa] scratch/dired-git-info 1c4ff64 23/33: Remove redundant :group declarations, Clemens Radermacher, 2019/02/17
- [elpa] scratch/dired-git-info cd60dd4 33/33: Check visible part of file names for right formatting, Clemens Radermacher, 2019/02/17
- [elpa] scratch/dired-git-info 3280075 22/33: Update descriptions, Clemens Radermacher, 2019/02/17