diff options
| author | Paul Eggert | 2015-04-18 19:08:53 -0700 |
|---|---|---|
| committer | Paul Eggert | 2015-04-18 19:48:23 -0700 |
| commit | f2da220b5fde8575812784f6a9e5f7df9560e838 (patch) | |
| tree | 382142ae10ef2aa258e6579f5050854d7eda326b | |
| parent | f4f1380deac296fb6ece142b16bf0ae2f3bdbd4d (diff) | |
| download | emacs-f2da220b5fde8575812784f6a9e5f7df9560e838.tar.gz emacs-f2da220b5fde8575812784f6a9e5f7df9560e838.zip | |
Prefer "Bug#1234" in commit messages
* .dir-locals.el (log-edit-mode): Don't rewrite Bug#,
as this isn't useful for Git.
* CONTRIBUTE: Suggest "Bug#1234" instead of "Fixes: debbugs:1234".
| -rw-r--r-- | .dir-locals.el | 4 | ||||
| -rw-r--r-- | CONTRIBUTE | 11 |
2 files changed, 5 insertions, 10 deletions
diff --git a/.dir-locals.el b/.dir-locals.el index f899b5155d6..9853d7b5d88 100644 --- a/.dir-locals.el +++ b/.dir-locals.el | |||
| @@ -3,9 +3,7 @@ | |||
| 3 | (fill-column . 70))) | 3 | (fill-column . 70))) |
| 4 | (c-mode . ((c-file-style . "GNU"))) | 4 | (c-mode . ((c-file-style . "GNU"))) |
| 5 | (objc-mode . ((c-file-style . "GNU"))) | 5 | (objc-mode . ((c-file-style . "GNU"))) |
| 6 | (log-edit-mode . ((log-edit-rewrite-fixes | 6 | (log-edit-mode . ((log-edit-font-lock-gnu-style . t) |
| 7 | "[ \n](bug#\\([0-9]+\\))" . "debbugs:\\1") | ||
| 8 | (log-edit-font-lock-gnu-style . t) | ||
| 9 | (log-edit-setup-add-author . t))) | 7 | (log-edit-setup-add-author . t))) |
| 10 | (change-log-mode . ((add-log-time-zone-rule . t) | 8 | (change-log-mode . ((add-log-time-zone-rule . t) |
| 11 | (fill-column . 74) | 9 | (fill-column . 74) |
diff --git a/CONTRIBUTE b/CONTRIBUTE index 476b3610cd5..4205bc3990a 100644 --- a/CONTRIBUTE +++ b/CONTRIBUTE | |||
| @@ -42,12 +42,11 @@ in its message. Here is an example commit message (indented): | |||
| 42 | Deactivate shifted region | 42 | Deactivate shifted region |
| 43 | 43 | ||
| 44 | Do not silently extend a region that is not highlighted; | 44 | Do not silently extend a region that is not highlighted; |
| 45 | this can happen after a shift. | 45 | this can happen after a shift (Bug#19003). |
| 46 | * doc/emacs/mark.texi (Shift Selection): Document the change. | 46 | * doc/emacs/mark.texi (Shift Selection): Document the change. |
| 47 | * lisp/window.el (handle-select-window): | 47 | * lisp/window.el (handle-select-window): |
| 48 | * src/frame.c (Fhandle_switch_frame, Fselected_frame): | 48 | * src/frame.c (Fhandle_switch_frame, Fselected_frame): |
| 49 | Deactivate the mark. | 49 | Deactivate the mark. |
| 50 | Fixes: bug#19003 | ||
| 51 | 50 | ||
| 52 | The general format is as follows. | 51 | The general format is as follows. |
| 53 | 52 | ||
| @@ -113,11 +112,9 @@ The general format is as follows. | |||
| 113 | 112 | ||
| 114 | Copyright-paperwork-exempt: yes | 113 | Copyright-paperwork-exempt: yes |
| 115 | 114 | ||
| 116 | - If the commit fixes a bug, append a separate line | 115 | - The commit message should contain "Bug#NNNNN" if it is related to |
| 117 | 116 | bug number NNNNN in the debbugs database. This string is often | |
| 118 | Fixes: bug#NNNN | 117 | parenthesized, as in "(Bug#19003)". |
| 119 | |||
| 120 | where NNNN is the bug number. | ||
| 121 | 118 | ||
| 122 | - In ChangeLog entries, there is no standard or recommended way to | 119 | - In ChangeLog entries, there is no standard or recommended way to |
| 123 | identify revisions. | 120 | identify revisions. |