stgit.el: Honor stgit-find-copies-harder in stgit-diff-range
authorGustav Hållberg <gustav@gmail.com>
Wed, 12 May 2010 18:14:13 +0000 (20:14 +0200)
committerGustav Hållberg <gustav@gmail.com>
Thu, 10 Jun 2010 07:25:21 +0000 (09:25 +0200)
Signed-off-by: Gustav Hållberg <gustav@gmail.com>
Signed-off-by: David Kågedal <davidk@lysator.liu.se>
contrib/stgit.el

index fca981d..487b891 100644 (file)
@@ -2097,10 +2097,12 @@ greater than four (e.g., \\[universal-argument] \
       (error "Can only show diff range for applied patches"))
     (stgit-capture-output (format "*StGit diff %s..%s*"
                                   first-patch second-patch)
-      (apply 'stgit-run-git (append '("diff" "--patch-with-stat")
-                                    (and whitespace-arg (list whitespace-arg))
-                                    (list (format "%s^" (stgit-id first-patch))
-                                          (stgit-id second-patch))))
+      (apply 'stgit-run-git
+             "diff" "--patch-with-stat"
+             (stgit-find-copies-harder-diff-arg)
+             (append (and whitespace-arg (list whitespace-arg))
+                     (list (format "%s^" (stgit-id first-patch))
+                           (stgit-id second-patch))))
       (with-current-buffer standard-output
         (goto-char (point-min))
         (diff-mode)))))