mirror of
https://github.com/git/git.git
synced 2024-11-28 20:44:04 +08:00
git.el: Set a regexp for paragraph-separate in log-edit mode.
This allows using fill-paragraph on the log message without interference from the various header fields. Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
a7da5c4259
commit
efd49f50fc
@ -1329,6 +1329,7 @@ Return the list of files that haven't been handled."
|
||||
(log-edit-diff-function . git-log-edit-diff)) buffer)
|
||||
(log-edit 'git-do-commit nil 'git-log-edit-files buffer))
|
||||
(setq font-lock-keywords (font-lock-compile-keywords git-log-edit-font-lock-keywords))
|
||||
(setq paragraph-separate (concat (regexp-quote git-log-msg-separator) "$\\|Author: \\|Date: \\|Merge: \\|Signed-off-by: \\|\f\\|[ ]*$"))
|
||||
(setq buffer-file-coding-system coding-system)
|
||||
(re-search-forward (regexp-quote (concat git-log-msg-separator "\n")) nil t))))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user