stgit.el: Honor stgit-find-copies-harder when showing entire patches
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:16 +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 564714b..fca981d 100644 (file)
@@ -2033,7 +2033,8 @@ which stage to diff against in the case of unmerged files."
                               (if (eq patch-id :index)
                                   '("--cached")
                                 (list unmerged-stage))))
-             (let ((args (append '("show" "-O" "--patch-with-stat" "-O" "-M")
+             (let ((args (append '("show" "-O" "--patch-with-stat")
+                                 `("-O" ,(stgit-find-copies-harder-diff-arg))
                                  (and space-arg (list "-O" space-arg))
                                  '("--")
                                  (list (stgit-patch-name-at-point)))))