3 ms·
Have you checked out https://github.com/git-duet/git-duet/ https://github.com/git-duet/git-duet/ ? You configure a ~/.git-authors file with people with whom yo
by umlaut 4y ago
Have you checked out https://github.com/git-duet/git-duet/ https://github.com/git-duet/git-duet/ ?
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.
- sshine 4y agoThanks 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. :-)
- umlaut 4y agoIt 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.