Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: d68e12aac8d992e36259542a6ed9677b0a60cef3
      
https://github.com/WebKit/WebKit/commit/d68e12aac8d992e36259542a6ed9677b0a60cef3
  Author: Brianna Fan <[email protected]>
  Date:   2025-05-30 (Fri, 30 May 2025)

  Changed paths:
    M Tools/Scripts/hooks/prepare-commit-msg
    M Tools/Scripts/libraries/webkitscmpy/webkitscmpy/commit_parser.py
    M Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/commit.py
    M Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/setup.py
    A 
Tools/Scripts/libraries/webkitscmpy/webkitscmpy/test/commit_parser_unittest.py
    M Tools/Scripts/libraries/webkitscmpy/webkitscmpy/test/setup_unittest.py

  Log Message:
  -----------
  [git-webkit] add option to update list of changed files
https://bugs.webkit.org/show_bug.cgi?id=285368
rdar://140809288

Reviewed by Jonathan Bedard.

Add a feature that automatically updates the changelog in your
commit message with the most recent changes.

This feature will be enabled by default. It can be disabled by:
    1) Set webkitscmpy.auto-update-changelog in .git/config to false
    2) Run git-webkit commit --amend --no-update

* Tools/Scripts/hooks/prepare-commit-msg:
    - When amending a commit with changes, parse the message and update
      the changelog with the modified lines. Then, reconstruct the message.
    - Add the relevant instructions/logging when the changelog is or is not
      updated.

* Tools/Scripts/libraries/webkitscmpy/webkitscmpy/commit_parser.py:
    - Change regex const names to match the expression (removed <-> deleted)
(CommitMessageParser._parse_modified_files_lines):
(CommitMessageParser.apply_comments_to_modified_files_lines):
    - Add return_deleted arg which will only return the lines that end with 
"Deleted" or "Removed".
    - Catch the case in which a comment is made after "Filename: 
[Added/Removed/Deleted]."
(CommitMessageParser.delete_trailing_blank_lines):
    - Fix class method arguments

* Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/commit.py:
(Commit.parser): Add --update/--no-update flags
(Commit.main): Set WKSCMPY_UPDATE_CHANGELOG env variable

* Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/setup.py:
(Setup.git): Set webkitscmpy.auto-update-changelog.

* 
Tools/Scripts/libraries/webkitscmpy/webkitscmpy/test/commit_parser_unittest.py: 
Added.
(TestCommitParser):
(TestCommitParser.test_basic_commit):
* Tools/Scripts/libraries/webkitscmpy/webkitscmpy/test/setup_unittest.py:

Canonical link: https://commits.webkit.org/295625@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to