]> git.eshelyaron.com Git - emacs.git/commit
Make diff-mode understand git-format-patch separators
authorKonstantin Kharlamov <Hi-Angel@yandex.ru>
Sun, 13 Oct 2019 03:52:21 +0000 (05:52 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 13 Oct 2019 03:52:21 +0000 (05:52 +0200)
commitf0002b2d84d7605d113b0b8124959e23f90d1b08
tree0936e3f2ccbecdb947af996f17bab3429711c4a1
parent518ff50f7a245f437576c5f7e716be9cba336287
Make diff-mode understand git-format-patch separators

* lisp/vc/diff-mode.el (diff-prev-line-if-patch-separator):
A function to return prev. line if it has git-format-patch
separator.
(diff-end-of-hunk): Make use of
diff-prev-line-if-patch-separator
diff-buffer-type: whether a buffer is a git-diff
(define-derived-mode): set diff-buffer-type to appropriate
value (bug#37395).
lisp/vc/diff-mode.el