Commit 8c73ae7
Merge #1906
1906: ci: filter git scissor line in commit lint hook r=tiagolobocastro a=urso
Updates pre-commit hook to exclude Git's scissor line when running commitlint, preventing the hook from processing contents intended to be excluded from the final commit message.
I have git configured to add a diff of all changes to my editor when writing the commit message. But unfortunately long lines and rust code tend to fail the commitlint. The filter will remove the diff before sending the commit message to commitlint.
For example for this PR git did append the following to the message:
```
#
#
Co-authored-by: Steffen Siering <[email protected]>1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
0 commit comments