RESOLVED FIXED 241760
prepare-commit-msg includes unstaged changes
https://bugs.webkit.org/show_bug.cgi?id=241760
Summary prepare-commit-msg includes unstaged changes
Matt Woodrow
Reported 2022-06-19 13:37:19 PDT
Creating a commit with some changes unstaged still results in those changes being included in the generated commit message. I think we need to pass `--git-index` to `prepare-ChangeLog` in order to only create a commit message template from the staged files.
Attachments
Radar WebKit Bug Importer
Comment 1 2022-06-26 13:38:12 PDT
Matt Woodrow
Comment 2 2022-06-27 18:17:41 PDT
Somewhat relatedly, when using `git commit --amend` to edit a commit, the provided list of changed files (as # lines) only contains the newly modified files. For my usage, it'd probably be easier if it just gave the full set of changes, so that I can replace the set in the existing commit message as a whole, rather than merging in line-by-line. I guess providing both would be the best of both worlds?
Matt Woodrow
Comment 3 2022-07-26 18:00:42 PDT
EWS
Comment 4 2022-09-07 20:37:26 PDT
Committed 254260@main (b4f3e7d2afaf): <https://commits.webkit.org/254260@main> Reviewed commits have been landed. Closing PR #2764 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.