Indicate deleted and renamed files.
This commit is contained in:
parent
a379bb1e0f
commit
e5ec239c31
1 changed files with 6 additions and 1 deletions
7
magit.el
7
magit.el
|
@ -856,12 +856,17 @@ Please see the manual for a complete description of Magit.
|
|||
(goto-char (match-beginning 0))
|
||||
(goto-char (point-max)))
|
||||
(point-marker))))
|
||||
;; XXX - figure out real status and propertize
|
||||
(magit-set-section-info file)
|
||||
(let ((status (cond
|
||||
((save-excursion
|
||||
(search-forward-regexp "^new" end t))
|
||||
"New ")
|
||||
((save-excursion
|
||||
(search-forward-regexp "^deleted" end t))
|
||||
"Deleted ")
|
||||
((save-excursion
|
||||
(search-forward-regexp "^rename" end t))
|
||||
"Renamed ")
|
||||
(t
|
||||
"Modified"))))
|
||||
(insert "\t" status " " file "\n")
|
||||
|
|
Loading…
Reference in a new issue