You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/docs/configuration/git.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -103,6 +103,10 @@ a commit being treated as a changelog entry.
103
103
104
104
An array of commit preprocessors for manipulating the commit messages before parsing/grouping them. These regex-based preprocessors can be used for removing or selecting certain parts of the commit message/body to be used in the following processes.
105
105
106
+
:::note
107
+
The `replace` or `replace_command` will take into account of the entire log of commit messages where the specified `pattern` is matched.
108
+
:::
109
+
106
110
Examples:
107
111
108
112
-`{ pattern = "foo", replace = "bar"}`
@@ -126,6 +130,8 @@ Custom OS commands can also be used for modifying the commit messages:
> The above is equivalent to: `echo "<matched_part_of_the_changelog>" | pandoc -t commonmark`
134
+
129
135
This is useful when you want to filter/encode messages using external commands. In the example above, [pandoc](https://pandoc.org/) is used to convert each commit message that matches the given `pattern` to the [CommonMark](https://commonmark.org/) format.
130
136
131
137
A more fun example would be reversing each commit message:
@@ -138,7 +144,7 @@ A more fun example would be reversing each commit message:
138
144
139
145
### commit_parsers
140
146
141
-
An array of commit parsers for determining the commit groups by using regex.
147
+
An array of commit parsers for determining the commit groups by using regex. The entire commit messages are affected wherever the regex is matched.
0 commit comments