Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Julliard <julliard@winehq.org>2009-01-27 13:59:54 +0300
committerAlexandre Julliard <julliard@winehq.org>2009-02-07 15:48:54 +0300
commitefd49f50fc087df2ad46f194ca848c5335f4cca9 (patch)
tree5270e1999a43132c15bf65a4925f51779828d8be /contrib/emacs
parenta7da5c425970372f75d7cc2c194d5646554f8a32 (diff)
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>
Diffstat (limited to 'contrib/emacs')
-rw-r--r--contrib/emacs/git.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/emacs/git.el b/contrib/emacs/git.el
index 415765ec51..f86c437518 100644
--- a/contrib/emacs/git.el
+++ b/contrib/emacs/git.el
@@ -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))))