Page MenuHomeFreeBSD

Compact the git commit message template
ClosedPublic

Authored by emaste on Dec 18 2020, 12:58 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 18, 4:06 AM
Unknown Object (File)
Oct 17 2024, 8:21 PM
Unknown Object (File)
Oct 17 2024, 8:21 PM
Unknown Object (File)
Oct 17 2024, 8:00 PM
Unknown Object (File)
Oct 4 2024, 4:59 PM
Unknown Object (File)
Sep 8 2024, 12:58 AM
Unknown Object (File)
Sep 7 2024, 5:48 PM
Unknown Object (File)
Sep 5 2024, 2:12 AM
Subscribers

Details

Reviewers
bcr
Summary

git's default commit message includes the list of staged, unstaged, and untracked files; adding our metadata tags and their descriptions makes for a very long template.

Move the descriptions on to the metadata lines themselves.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

emaste created this revision.

In use it would look something like

prepare-commit-msg: compact the template

# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
#
#                                                         72 columns --|
#
# Uncomment and complete these metadata fields, as appropriate:
#
# PR:           <If and which Problem Report is related.>
# Submitted by: <If someone else sent in the change.>
# Reported by:  <If someone else reported the issue.>
# Reviewed by:  <If someone else reviewed your modification.>
# Approved by:  <If you needed approval for this commit.>
# Obtained from:        <If the change is from a third party.>
# MFC after:    <N [day[s]|week[s]|month[s]].  Request a reminder email>
# MFH:          <Ports tree branch name.  Request approval for merge.>
# Relnotes:     <Set to 'yes' for mention in release notes.>
# Security:     <Vulnerability reference (one per line) or description.>
Sponsored by:   The FreeBSD Foundation
# Pull Request: <https://github.com/freebsd/<repo>/pull/###>
# Differential Revision:        <https://reviews.freebsd.org/D###>
#
# "Pull Request" and "Differential Revision" require the *full* GitHub or
# Phabricator URL.
#
# Date:      Thu Dec 17 19:52:30 2020 -0500
#
# On branch wipbsd.20201216
# Changes to be committed:
#       modified:   tools/tools/git/hooks/prepare-commit-msg
#
# Untracked files:
#       ItaniumDemangle.o
bcr added a subscriber: bcr.

It looks good to me, wording and all.

This revision is now accepted and ready to land.Dec 18 2020, 8:45 AM