Show correct filenames in the "Pending changes" section.
* magit.el (magit-diff-line-file): Don't insist on "a/..." being the first file.
This commit is contained in:
parent
8652dc979c
commit
5a1039cd6f
1 changed files with 1 additions and 1 deletions
2
magit.el
2
magit.el
|
@ -1384,7 +1384,7 @@ Please see the manual for a complete description of Magit.
|
||||||
(magit-refresh))
|
(magit-refresh))
|
||||||
|
|
||||||
(defun magit-diff-line-file ()
|
(defun magit-diff-line-file ()
|
||||||
(cond ((looking-at "^diff --git a/\\(.*\\) b/\\(.*\\)$")
|
(cond ((looking-at "^diff --git ./\\(.*\\) ./\\(.*\\)$")
|
||||||
(match-string-no-properties 2))
|
(match-string-no-properties 2))
|
||||||
((looking-at "^diff --cc +\\(.*\\)$")
|
((looking-at "^diff --cc +\\(.*\\)$")
|
||||||
(match-string-no-properties 1))
|
(match-string-no-properties 1))
|
||||||
|
|
Loading…
Add table
Reference in a new issue