git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
AJAlexandre Julliard <julliard@winehq.org>
Date
Oct 5, 2006, 09:29 UTC
Message-ID
<87odsr9kkq.fsf@wine.dyndns.org>

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

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
---
 contrib/emacs/git.el |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/contrib/emacs/git.el b/contrib/emacs/git.el
index 68de9be..5354cd6 100644
--- a/contrib/emacs/git.el
+++ b/contrib/emacs/git.el
@@ -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)
       "")))
-- 
1.4.2.3.g1723

-- 
Alexandre Julliard
julliard@winehq.org
Message 1 of 1 in “git.el: Fixed inverted "renamed from/to" message.”
  1. git.el: Fixed inverted "renamed from/to" message.Alexandre Julliard, Oct 5, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.