git-commit-zomg 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. # Subject: summary of your change:
  2. # * 50 Characters is a soft limit (aim for < 80)
  3. # * "If applied, this commit will..."
  4. # * Use the imperative mood; e.g.,
  5. # (Change/Add/Fix/Remove/Update/Refactor/Document)
  6. # * Do not end the subject with a period (full stop)
  7. # * Optionally, prefix the subject with the relevant component
  8. # (the general area of code being modified)
  9. #
  10. # Example[0]
  11. #
  12. # jquery.badge: Add ability to display the number zero
  13. #
  14. # [0]. <https://www.mediawiki.org/wiki/Gerrit/Commit_message_guidelines#Subject>
  15. #
  16. # Leave this blank line below your subject:
  17. # Body: Additional information about a commit:
  18. # Think about these questions
  19. #
  20. # * Why should this change should be made?
  21. # What is wrong with the current code?
  22. # * Why should it be changed in this way?
  23. # Are there other ways?
  24. # * How can a reviewer confirm that your change works as intended?[0]
  25. #
  26. # * An alternative format maybe a problem/solution commit as used in
  27. # ZeroMQ[1]; e.g.
  28. #
  29. # * Problem: Windows build script requires edit of VS version
  30. # * Solution: Use CMD.EXE environment variable to extract
  31. # DevStudio version number and build using it.
  32. #
  33. # [0]. <https://www.mediawiki.org/wiki/Gerrit/Commit_message_guidelines#Body>
  34. # [1]. <http://zeromq.org/docs:contributing#toc3>
  35. # ---
  36. #
  37. # Bug number:
  38. #
  39. # Bug: TXXXXXX
  40. #
  41. # ---
  42. #
  43. # Gerrit specific:
  44. #
  45. # Change-Id: IXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  46. # Depends-On: IXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  47. #
  48. # ---
  49. #
  50. # Sign your work:
  51. #
  52. # > The sign-off is a simple line at the end of the explanation for the
  53. # > patch, which certifies that you wrote it or otherwise have the right to
  54. # > pass it on as a open-source patch [0]
  55. #
  56. # Signed-off-by: Example User <user@example.com>
  57. #
  58. # [0]. <https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/SubmittingPatches?id=4e8a2372f9255a1464ef488ed925455f53fbdaa1>
  59. #
  60. # ---
  61. #
  62. # Other Nice Things:
  63. #
  64. # If you worked on a patch with others it's nice to credit them for
  65. # their contributions; however, these tags should not be added without
  66. # your collaborator's permission!
  67. # Acked-by: Example User <user@example.com>
  68. # Cc: Example User <user@example.com>
  69. # Co-Authored-by: Example User <user@example.com>
  70. # Requested-by: Example User <user@example.com>
  71. # Reported-by: Example User <user@example.com>
  72. # Reviewed-by: Example User <user@example.com>
  73. # Suggested-by: Example User <user@example.com>
  74. # Tested-by: Example User <user@example.com>
  75. # Thanks: Example User <user@example.com>
  76. #
  77. # ---
  78. # _ _ _ _
  79. # __ _(_) |_ ___ ___ _ __ ___ _ __ ___ (_) |_ _______ _ __ ___ __ _
  80. # / _` | | __| / __/ _ \| '_ ` _ \| '_ ` _ \| | __| |_ / _ \| '_ ` _ \ / _` |
  81. # | (_| | | |_ | (_| (_) | | | | | | | | | | | | |_ / / (_) | | | | | | (_| |
  82. # \__, |_|\__| \___\___/|_| |_| |_|_| |_| |_|_|\__| /___\___/|_| |_| |_|\__, |
  83. # |___/ |___/
  84. #
  85. # Save to `~/.git-commit-zomg` Then run:
  86. #
  87. # git config --global commit.template ~/.git-commit-zomg
  88. #
  89. # The idea for this template came from Vicky Lai[0]
  90. #
  91. # [0]. <https://vickylai.com/verbose/git-commit-practices-your-future-self-will-thank-you-for/>