forked from WebKit/WebKit-http
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The generated commit message have a directory label at the first line…
… rather than the bug's title if ChangeLogs have different bug titles https://bugs.webkit.org/show_bug.cgi?id=220822 Reviewed by Darin Adler. commit-log-editor generates the default commit message by collecting all ChangeLog entries and merging them with prepending directory lables. If it finds out a common prefix for all entries, it removes the prefix from entries and hoists the prefix as the beginning of the commit message. This step removes duplicated lines of the bug title, the bug URL, the reviewed-by line, and the descriptions. If such prefix is not found, i.e. ChangeLog entries has different bug titles, it simply merges all entries with directory labels. As the result, the generated commit message has the directory label at the first line. This is not desirable. The first line of the commit message should be the bug title. This patch yanks the first line of the first entry as the common prefix in the case. * Scripts/commit-log-editor: (createCommitMessage): (removeLongestCommonPrefixEndingInNewline): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@271805 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
1a37db1
commit b408e42
Showing
2 changed files
with
54 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,31 @@ | ||
2021-01-25 Fujii Hironori <[email protected]> | ||
|
||
The generated commit message have a directory label at the first line rather than the bug's title if ChangeLogs have different bug titles | ||
https://bugs.webkit.org/show_bug.cgi?id=220822 | ||
|
||
Reviewed by Darin Adler. | ||
|
||
commit-log-editor generates the default commit message by | ||
collecting all ChangeLog entries and merging them with prepending | ||
directory lables. If it finds out a common prefix for all entries, | ||
it removes the prefix from entries and hoists the prefix as the | ||
beginning of the commit message. This step removes duplicated | ||
lines of the bug title, the bug URL, the reviewed-by line, and the | ||
descriptions. | ||
|
||
If such prefix is not found, i.e. ChangeLog entries has different | ||
bug titles, it simply merges all entries with directory labels. As | ||
the result, the generated commit message has the directory label | ||
at the first line. This is not desirable. The first line of the | ||
commit message should be the bug title. | ||
|
||
This patch yanks the first line of the first entry as the common | ||
prefix in the case. | ||
|
||
* Scripts/commit-log-editor: | ||
(createCommitMessage): | ||
(removeLongestCommonPrefixEndingInNewline): | ||
|
||
2021-01-25 Lauro Moura <[email protected]> | ||
|
||
[GLIB] Gardening API failures after r271794 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters