stgit.el: Run 'git show' with -M to detect renames when showing entire patch
authorGustav Hållberg <gustav@virtutech.com>
Fri, 13 Mar 2009 04:02:59 +0000 (05:02 +0100)
committerKarl Hasselström <kha@treskal.com>
Fri, 13 Mar 2009 04:02:59 +0000 (05:02 +0100)
Signed-off-by: Gustav Hållberg <gustav@virtutech.com>
Signed-off-by: Karl Hasselström <kha@treskal.com>
contrib/stgit.el

index b066b14..bd85598 100644 (file)
@@ -786,7 +786,7 @@ With numeric prefix argument, pop that many patches."
                ;; just one file
                (stgit-run-git "diff" (concat id "^") id "--"
                               (cdr patched-file)))))
-        (stgit-run "show" "-O" "--patch-with-stat" patchsym))
+        (stgit-run "show" "-O" "--patch-with-stat" "-O" "-M" patchsym))
       (with-current-buffer standard-output
        (goto-char (point-min))
        (diff-mode)))))