]> git.ipfire.org Git - thirdparty/git.git/blobdiff - contrib/emacs/git.el
git.el: Set a regexp for paragraph-separate in log-edit mode.
[thirdparty/git.git] / contrib / emacs / git.el
index 415765ec511c4fb0971eec5278fc897586a2747c..f86c437518938c9ed546ebed25901b97b5596b10 100644 (file)
@@ -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))))