Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
git.el: Set a regexp for paragraph-separate in log-edit mode.
author
Alexandre Julliard
<julliard@winehq.org>
Tue, 27 Jan 2009 10:59:54 +0000
(11:59 +0100)
committer
Alexandre Julliard
<julliard@winehq.org>
Sat, 7 Feb 2009 12:48:54 +0000
(13:48 +0100)
This allows using fill-paragraph on the log message without
interference from the various header fields.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
contrib/emacs/git.el
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
a7da5c4
)
diff --git
a/contrib/emacs/git.el
b/contrib/emacs/git.el
index 415765ec511c4fb0971eec5278fc897586a2747c..f86c437518938c9ed546ebed25901b97b5596b10 100644
(file)
--- 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))))