Skip to content

Commit d388401

Browse files
committed
build: add prepare-commit-msg hook to optionally support git-duet
1 parent cfae794 commit d388401

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.husky/prepare-commit-msg

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bash
2+
3+
# Automates pair commits with git-duet
4+
# See: https://github.com/git-duet/git-duet/#co-authored-by-trailer-support
5+
6+
if [ $(git help -a | grep duet-prepare-msg) ]; then
7+
exec git duet-prepare-commit-msg "$@"
8+
fi

0 commit comments

Comments
 (0)