Skip to content

Commit e293416

Browse files
authored
Merge pull request #26 from walle/add_support_for_verbose_commits
Add support for verbose commits
2 parents 9e432db + 7d31c4f commit e293416

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

hook.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,10 @@ read_commit_message() {
111111
REPLY="${REPLY%%*( )}"
112112
shopt -u extglob
113113

114+
# ignore all lines after cut line
115+
[[ $REPLY == "# ------------------------ >8 ------------------------" ]]
116+
test $? -eq 1 || break
117+
114118
# ignore comments
115119
[[ $REPLY =~ ^# ]]
116120
test $? -eq 0 || COMMIT_MSG_LINES+=("$REPLY")

0 commit comments

Comments
 (0)