summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2017-01-20 23:29:15 -0500
committerKyle Meyer <kyle@kyleam.com>2017-01-20 23:29:15 -0500
commit8b8fe15e70d7784fb214966b82e89ba340808a7d (patch)
tree305a108404e46138000aa4dc5c71345db9cce363
parentfa1c39cc448244cf9260bdec07a14400b0f11a47 (diff)
downloademacs.d-8b8fe15e70d7784fb214966b82e89ba340808a7d.tar.gz
magit: Add --diff-filter option to popups
-rw-r--r--init.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/init.el b/init.el
index 7f05364..a4515e0 100644
--- a/init.el
+++ b/init.el
@@ -945,6 +945,11 @@
(magit-define-popup-action 'magit-diff-popup
?e "Edit options" #'magit-diff-refresh-popup)
+ (magit-define-popup-option 'magit-diff-popup
+ ?d "Diff filter" "--diff-filter=")
+ (magit-define-popup-option 'magit-diff-mode-refresh-popup
+ ?d "Diff filter" "--diff-filter=")
+
(magit-change-popup-key 'magit-stash-popup :action
?Z ?s)