Skip to contentSkip to conversation

git.el: Fixed inverted "renamed from/to" message.

PATCH New Alexandre Julliard 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 git.el: Fixed inverted "renamed from/to" message.

The deleted file should be labeled "renamed to" and the added file "renamed from", not the other way around (duh!)

---
 contrib/emacs/git.el |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
contrib/emacs/git.el +2 -2
index 68de9be..5354cd6 100644
@@ -422,8 +422,8 @@ (defun git-rename-as-string (info)
         (propertize
          (concat "   ("
                  (if (eq state 'copy) "copied from "
-                   (if (eq (git-fileinfo->state info) 'added) "renamed to "
-                     "renamed from "))
+                   (if (eq (git-fileinfo->state info) 'added) "renamed from "
+                     "renamed to "))
                  (git-escape-file-name (git-fileinfo->orig-name info))
                  ")") 'face 'git-status-face)
       "")))
Signature · 5 lines
1.4.2.3.g1723

-- 
Alexandre Julliard
[email protected]