-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy path.gitcommit
More file actions
42 lines (42 loc) · 1.68 KB
/
.gitcommit
File metadata and controls
42 lines (42 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# <subject> WHAT
#
# <body> WHY
#
# <trailers>
#
# STRUCTURE:
#
# <type[!]>(optional_scope): <description: imperative mood>
#
# TYPES:
# all: Changes to multiple files/modules/packages.
# breaking: Changes that should result in a new major version release.
# build: Changes that affect the build system or external dependencies
# chore: Routine tasks, build process, or maintenance changes.
# ci: Changes to our CI configuration files and scripts
# doc: Documentation only changes
# feat: A new feature
# fix: A bug fix
# perf: A code change that improves performance
# refactor: A code change that neither fixes a bug nor adds a feature
# remove: A code change that removes a feature.
# style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
# test: Adding missing tests or correcting existing tests
# todo: Adding notes like FIXME: WARNING: NOTE:
#
# Use plural if multiple items affected.
# Can also use ! if it's a breaking change, e.g. feat!
#
# EXAMPLES:
# fix!: this indicates a fix that also is a breaking change
# all: replace interface{} with any
# feat(net/http): support disabling built-in HTTP/2 with a new build tag
# fix(net/url, net/http): relax CTL-in-URL validation to only ASCII CTLs
# refactor(lsp): clean up neovim lsp implementation
#
# REFERENCE:
# https://www.conventionalcommits.org/
# https://git.kernel.org/pub/scm/git/git.git/tree/Documentation/SubmittingPatches?h=v2.36.1#n181
# https://en.wikipedia.org/wiki/Imperative_mood
# https://git-scm.com/docs/git-interpret-trailers
# https://alchemists.io/articles/git_trailers