tools: commitlint: allow a git "fixup! " prefix
(Allows git commit --fixup and magit c F to work)
This commit is contained in:
parent
41d7c7f6b3
commit
cddc719bd1
@ -66,7 +66,8 @@ function checkmsg()
|
|||||||
# there can be zero or more topic prefixes of increasing depth
|
# there can be zero or more topic prefixes of increasing depth
|
||||||
# a topic prefix must begin with a word character, can contain spaces/slashes/commas
|
# a topic prefix must begin with a word character, can contain spaces/slashes/commas
|
||||||
# (so potentially multiple topic labels, eg "imp: bs, cf, is: cli/doc: blah blah")
|
# (so potentially multiple topic labels, eg "imp: bs, cf, is: cli/doc: blah blah")
|
||||||
elif ! echo "$SUMMARY" | grep -qE '^( *; *)?\w+( *!)? *: *(\w[\w,/ ]* *: *)*'
|
# Also permit a git "fixup! " prefix.
|
||||||
|
elif ! echo "$SUMMARY" | grep -qE '^(fixup! )?( *; *)?\w+( *!)? *: *(\w[\w,/ ]* *: *)*'
|
||||||
then
|
then
|
||||||
# shellcheck disable=SC2059
|
# shellcheck disable=SC2059
|
||||||
printf "$FMT" "$HASH" "$SUMMARY" "${RED}[FAIL]"
|
printf "$FMT" "$HASH" "$SUMMARY" "${RED}[FAIL]"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user