diff options
| author | Stefan Kangas | 2025-03-03 18:37:43 +0100 |
|---|---|---|
| committer | Stefan Kangas | 2025-03-03 18:57:17 +0100 |
| commit | 10abb87f0519b3d53d6b7078703d3a0120e3aaa8 (patch) | |
| tree | 183ea373683714b48b7ee19e173a04b9218a1b6a /java/incrementing-version-code | |
| parent | eeda2a8ab1f06da5b51dc98e57ae8b4a4faa1f72 (diff) | |
| download | emacs-10abb87f0519b3d53d6b7078703d3a0120e3aaa8.tar.gz emacs-10abb87f0519b3d53d6b7078703d3a0120e3aaa8.zip | |
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.
Diffstat (limited to 'java/incrementing-version-code')
0 files changed, 0 insertions, 0 deletions