From 5a1039cd6fad796bfbdb50600c91300161b24c20 Mon Sep 17 00:00:00 2001 From: Marius Vollmer Date: Sat, 28 Feb 2009 19:22:22 +0200 Subject: [PATCH] Show correct filenames in the "Pending changes" section. * magit.el (magit-diff-line-file): Don't insist on "a/..." being the first file. --- magit.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/magit.el b/magit.el index 01118a32..474d7fd4 100644 --- a/magit.el +++ b/magit.el @@ -1384,7 +1384,7 @@ Please see the manual for a complete description of Magit. (magit-refresh)) (defun magit-diff-line-file () - (cond ((looking-at "^diff --git a/\\(.*\\) b/\\(.*\\)$") + (cond ((looking-at "^diff --git ./\\(.*\\) ./\\(.*\\)$") (match-string-no-properties 2)) ((looking-at "^diff --cc +\\(.*\\)$") (match-string-no-properties 1))