12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- # Subject: summary of your change:
- # * 50 Characters is a soft limit (aim for < 80)
- # * "If applied, this commit will..."
- # * Use the imperative mood; e.g.,
- # (Change/Add/Fix/Remove/Update/Refactor/Document)
- # * Do not end the subject with a period (full stop)
- # * Optionally, prefix the subject with the relevant component
- # (the general area of code being modified)
- #
- # Example[0]
- #
- # jquery.badge: Add ability to display the number zero
- #
- # [0]. <https://www.mediawiki.org/wiki/Gerrit/Commit_message_guidelines#Subject>
- #
- # Leave this blank line below your subject:
- # Body: Additional information about a commit:
- # Think about these questions
- #
- # * Why should this change should be made?
- # What is wrong with the current code?
- # * Why should it be changed in this way?
- # Are there other ways?
- # * How can a reviewer confirm that your change works as intended?[0]
- #
- # * An alternative format maybe a problem/solution commit as used in
- # ZeroMQ[1]; e.g.
- #
- # * Problem: Windows build script requires edit of VS version
- # * Solution: Use CMD.EXE environment variable to extract
- # DevStudio version number and build using it.
- #
- # [0]. <https://www.mediawiki.org/wiki/Gerrit/Commit_message_guidelines#Body>
- # [1]. <http://zeromq.org/docs:contributing#toc3>
- # ---
- #
- # Bug number:
- #
- # Bug: TXXXXXX
- #
- # ---
- #
- # Gerrit specific:
- #
- # Change-Id: IXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
- # Depends-On: IXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
- #
- # ---
- #
- # Sign your work:
- #
- # > The sign-off is a simple line at the end of the explanation for the
- # > patch, which certifies that you wrote it or otherwise have the right to
- # > pass it on as a open-source patch [0]
- #
- # Signed-off-by: Example User <user@example.com>
- #
- # [0]. <https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/SubmittingPatches?id=4e8a2372f9255a1464ef488ed925455f53fbdaa1>
- #
- # ---
- #
- # Other Nice Things:
- #
- # If you worked on a patch with others it's nice to credit them for
- # their contributions; however, these tags should not be added without
- # your collaborator's permission!
- # Acked-by: Example User <user@example.com>
- # Cc: Example User <user@example.com>
- # Co-Authored-by: Example User <user@example.com>
- # Requested-by: Example User <user@example.com>
- # Reported-by: Example User <user@example.com>
- # Reviewed-by: Example User <user@example.com>
- # Suggested-by: Example User <user@example.com>
- # Tested-by: Example User <user@example.com>
- # Thanks: Example User <user@example.com>
- #
- # ---
- # _ _ _ _
- # __ _(_) |_ ___ ___ _ __ ___ _ __ ___ (_) |_ _______ _ __ ___ __ _
- # / _` | | __| / __/ _ \| '_ ` _ \| '_ ` _ \| | __| |_ / _ \| '_ ` _ \ / _` |
- # | (_| | | |_ | (_| (_) | | | | | | | | | | | | |_ / / (_) | | | | | | (_| |
- # \__, |_|\__| \___\___/|_| |_| |_|_| |_| |_|_|\__| /___\___/|_| |_| |_|\__, |
- # |___/ |___/
- #
- # Save to `~/.git-commit-zomg` Then run:
- #
- # git config --global commit.template ~/.git-commit-zomg
- #
- # The idea for this template came from Vicky Lai[0]
- #
- # [0]. <https://vickylai.com/verbose/git-commit-practices-your-future-self-will-thank-you-for/>
|