[webkit-changes] [WebKit/WebKit] b4f3e7: Only include staged changes in the list of changed...
mattwoodrow
noreply at github.com
Wed Sep 7 20:37:37 PDT 2022
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: b4f3e7d2afafe391b458bc9b1602f10b7a22062e
https://github.com/WebKit/WebKit/commit/b4f3e7d2afafe391b458bc9b1602f10b7a22062e
Author: Matt Woodrow <mattwoodrow at apple.com>
Date: 2022-09-07 (Wed, 07 Sep 2022)
Changed paths:
M Tools/Scripts/hooks/prepare-commit-msg
Log Message:
-----------
Only include staged changes in the list of changed files in auto-generated commit message
https://bugs.webkit.org/show_bug.cgi?id=241760
Reviewed by Jonathan Bedard.
This adds --git-index to the prepare-ChangeLog invocation, so that only staged changes are included,
rather than also including working directory changes that won't be part of the commit.
It also detects amended commits, and adds a second list of changes files which covers the existing
commit as well as the newly added modifications.
Lastly it removes message_from_staged_changelogs, since we no longer have ChangeLog files in-tree.
* Tools/Scripts/hooks/prepare-commit-msg:
Canonical link: https://commits.webkit.org/254260@main
More information about the webkit-changes
mailing list