Thanks for the hint!
There seems to be at least these three advantages over my approach:
- `git duet` has neat syntax for attributing more than two people.
- `git duet` lets me enter a mode where it keeps attributing my co-authors.
- `git duet` keeps the authors in a separata data file, not in the script.
I might consider switching for the next small project. :-)It also can automatically rotate authors if you've got people eager for attribution. When I was just starting out pairing, it felt really good to join a project and immediately get commits on a new repo.
You configure a ~/.git-authors file with people with whom you regularly pair, and use `git duet [author-1] [author-2]` to set primary and secondary commit authors. Env variables set whether you want `Signed-off-by` or `Co-authored-by` trailers.