aboutsummaryrefslogtreecommitdiff
path: root/lisp/magit-base.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/magit-base.el')
-rw-r--r--lisp/magit-base.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/magit-base.el b/lisp/magit-base.el
index cdb8e20..53916cf 100644
--- a/lisp/magit-base.el
+++ b/lisp/magit-base.el
@@ -504,6 +504,9 @@ and delay of your graphical environment or operating system."
(heading-highlight-face :initform 'magit-diff-hunk-heading-highlight)
(heading-selection-face :initform 'magit-diff-hunk-heading-selection)))
+(defun magit--meta-hunk-p (section)
+ (not (cdr (oref section value))))
+
(setf (alist-get 'file magit--section-type-alist) 'magit-file-section)
(setf (alist-get 'module magit--section-type-alist) 'magit-module-section)
(setf (alist-get 'hunk magit--section-type-alist) 'magit-hunk-section)