From a60da55f088d88bf70d5cbd1e8b2fdd47508a334 Mon Sep 17 00:00:00 2001 From: Paul Stadig Date: Fri, 5 Nov 2010 22:53:22 +0800 Subject: [PATCH] Preserve magit-diff-options when binding --- magit.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/magit.el b/magit.el index 8daafef0..1858dc82 100644 --- a/magit.el +++ b/magit.el @@ -2390,7 +2390,7 @@ in the corresponding directories." (magit-define-inserter unstaged-changes (title) (let ((magit-hide-diffs t)) - (let ((magit-diff-options '())) + (let ((magit-diff-options (append '() magit-diff-options))) (magit-git-section 'unstaged title 'magit-wash-raw-diffs "diff-files")))) @@ -2400,7 +2400,7 @@ in the corresponding directories." (base (if no-commit (magit-git-string "mktree") "HEAD"))) - (let ((magit-diff-options '("--cached")) + (let ((magit-diff-options (append '("--cached") magit-diff-options)) (magit-ignore-unmerged-raw-diffs t)) (magit-git-section 'staged "Staged changes:" 'magit-wash-raw-diffs "diff-index" "--cached"