diff options
author | Gustav Hållberg <gustav@gmail.com> | 2010-05-12 20:14:13 +0200 |
---|---|---|
committer | Gustav Hållberg <gustav@gmail.com> | 2010-06-10 09:25:21 +0200 |
commit | de8efe1efc4a495eca0614aa9f6c1910d5838f99 (patch) | |
tree | 155940db834247f2a6bc397c67d1bdd960b82004 | |
parent | a27d0b751522c2a787ec350bd965a6d2c82ea3a7 (diff) | |
download | stgit-de8efe1efc4a495eca0614aa9f6c1910d5838f99.tar.gz |
stgit.el: Honor stgit-find-copies-harder in stgit-diff-range
Signed-off-by: Gustav Hållberg <gustav@gmail.com>
Signed-off-by: David Kågedal <davidk@lysator.liu.se>
-rw-r--r-- | contrib/stgit.el | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/contrib/stgit.el b/contrib/stgit.el index fca981d..487b891 100644 --- a/contrib/stgit.el +++ b/contrib/stgit.el @@ -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))))) |