Bug 220511 - Use/recommend .git/hooks/prepare-commit-msg for commit message generation
Summary: Use/recommend .git/hooks/prepare-commit-msg for commit message generation
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-01-11 08:43 PST by Sam Sneddon [:gsnedders]
Modified: 2021-01-18 08:44 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sam Sneddon [:gsnedders] 2021-01-11 08:43:30 PST
Currently on the wiki (on https://trac.webkit.org/wiki/UsingGitWithWebKit) we recommend setting the core.editor config variable to generate commit messages.

It would seem better to not override the editor configuration, but to instead use the hook that git provides for such tasks (prepare-commit-msg). We will need some level of complexity in the script to handle the different sources of commit message (i.e., the second argument to the hook).
Comment 1 Radar WebKit Bug Importer 2021-01-18 08:44:15 PST
<rdar://problem/73324563>