1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 06:20:55 -08:00
emacs/lisp/vc
Stefan Kangas 10abb87f05 Fix fontification outside hunks in Git patches
* lisp/vc/diff-mode.el (diff-font-lock-keywords): Don't fontify lines in
Git patches starting with + or - as added/removed, if they are either
before the first hunk, or in the email signature.  (Bug#75884)
(diff-buffer-type): Move definition up.
(diff--indicator-added-re, diff--indicator-removed-re): New variables.
(diff--git-preamble-end, diff--git-footer-start)
(diff--indicator-matcher-helper, diff--indicator-added-matcher)
(diff--indicator-removed-matcher): New functions.
* test/lisp/vc/diff-mode-tests.el (diff-mode-test-git-patch)
(diff-mode-test-git-patch/before-first-hunk)
(diff-mode-test-git-patch/signature): New tests.
* test/lisp/vc/diff-mode-resources/git.patch: New file.
2025-03-03 18:57:17 +01:00
..
add-log.el Revert "Correctly fill generated ChangeLog entries" 2025-02-26 07:22:27 +01:00
compare-w.el
cvs-status.el
diff-mode.el Fix fontification outside hunks in Git patches 2025-03-03 18:57:17 +01:00
diff.el Merge from origin/emacs-30 2025-03-01 10:01:54 -05:00
ediff-diff.el
ediff-help.el
ediff-hook.el
ediff-init.el
ediff-merg.el
ediff-mult.el
ediff-ptch.el Prefer '(evenp A)' to '(= 0 (% A 2))' 2025-02-17 05:37:10 +01:00
ediff-util.el
ediff-vers.el
ediff-wind.el
ediff.el
emerge.el
log-edit.el
log-view.el
pcvs-defs.el
pcvs-info.el
pcvs-parse.el
pcvs-util.el Prefer decf to cl-decf 2025-02-23 00:38:22 +01:00
pcvs.el
smerge-mode.el Prefer decf to cl-decf 2025-02-23 00:38:22 +01:00
vc-annotate.el
vc-bzr.el
vc-cvs.el Delete redundant lambdas around unary functions 2025-02-11 19:04:00 +01:00
vc-dav.el
vc-dir.el
vc-dispatcher.el
vc-filewise.el
vc-git.el
vc-hg.el Prefer incf to cl-incf in vc/*.el 2025-02-26 01:48:48 +01:00
vc-hooks.el Prefer incf to cl-incf in vc/*.el 2025-02-26 01:48:48 +01:00
vc-rcs.el
vc-sccs.el
vc-src.el
vc-svn.el
vc.el Prefer incf to cl-incf in vc/*.el 2025-02-26 01:48:48 +01:00