Bug 240899 - Amending a commit should update changed files and functions in commit message
Summary: Amending a commit should update changed files and functions in commit message
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks: 239082
  Show dependency treegraph
 
Reported: 2022-05-24 22:29 PDT by Manuel Rego Casasnovas
Modified: 2022-11-16 19:04 PST (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Manuel Rego Casasnovas 2022-05-24 22:29:01 PDT
Not sure if via git-webkit script or with a different tool, but if you ammend a local commit, I didn't find a way to regenerate the list of modified files that should be included in the commit message.

The only way I found is to "git reset --soft HEAD^" and commit again.

But I believe there should be a simpler way to do that.
Comment 1 Radar WebKit Bug Importer 2022-05-31 22:29:12 PDT
<rdar://problem/94200273>
Comment 2 Matt Woodrow 2022-10-11 20:14:49 PDT
I've updated the commit hook now, so if you do `git commit --amend` it should show the full list of modified files in the commented out section of the commit editor.