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

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

[elpa] externals/dired-git-info bd38537 1/5: Convert tramp file names to


From: Clemens Radermacher
Subject: [elpa] externals/dired-git-info bd38537 1/5: Convert tramp file names to local ones
Date: Thu, 21 Feb 2019 10:55:55 -0500 (EST)

branch: externals/dired-git-info
commit bd38537e099de10f989330c7c26ca43b396579a7
Author: Clemens Radermacher <address@hidden>
Commit: Clemens Radermacher <address@hidden>

    Convert tramp file names to local ones
---
 dired-git-info.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/dired-git-info.el b/dired-git-info.el
index 94f7c48..2ad24c7 100644
--- a/dired-git-info.el
+++ b/dired-git-info.el
@@ -96,8 +96,9 @@ are (see git-log PRETTY FORMATS for all):
 
 FILE default to current dired file. GITF determines the commit
 info format and defaults to `dgi-commit-message-format'."
-  (let ((file (or file (dired-get-file-for-visit))))
-    (when (and file (file-exists-p file))
+  (let* ((tfile (or file (dired-get-file-for-visit)))
+         (file (or (file-remote-p tfile 'localname) tfile)))
+    (when file
       (let ((msg (dgi--command-to-string
                   "git" "log" "-1"
                   (concat "--pretty="



reply via email to

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