1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-27 08:43:40 -07:00
emacs/test/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
..
diff-mode-resources Fix fontification outside hunks in Git patches 2025-03-03 18:57:17 +01:00
add-log-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
diff-mode-tests.el Fix fontification outside hunks in Git patches 2025-03-03 18:57:17 +01:00
ediff-diff-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
ediff-ptch-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
log-edit-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
smerge-mode-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
vc-bzr-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
vc-cvs-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
vc-git-tests.el Test vc-git-dir-extra-headers directly (bug#76187) 2025-02-17 21:47:14 +01:00
vc-hg-tests.el Update copyright year to 2025 2025-01-01 07:39:17 +00:00
vc-tests.el ; Fix thinko 2025-03-02 19:46:15 +01:00