git-duet / git-duet

Support for pairing with git
MIT License
421 stars 39 forks source link

Any thoughts into adding more than one author? #96

Open varelycode opened 3 years ago

varelycode commented 3 years ago

Often times our team finds ourselves trio-ing or mobbing. Would be nice if there was a git mob or git party option that allows more than two authors initials to be added as contribution.

jszwedko commented 3 years ago

Yeah, that'd be a good idea. We do have the option to rotate the committers for "mob programming", but we could add all as Co-Authored-By.

kynetiv commented 3 years ago

...but we could add all as Co-Authored-By.

Mobbing support seems partially working already. I've noticed that it will add the additional Co-Authored-By lines on a commit when I have export GIT_DUET_CO_AUTHORED_BY=1 set.

The only problem I've seen though is that a git commit --amend, will re-apply all the Co-Authored-By lines again, stacking them on top of any existing Co-Authored-By lines.

halfghaninne commented 8 months ago

Could someone clarify for me where this GIT_DUET_CO_AUTHORED_BY gets set? Is this in my .gitconfig?

jszwedko commented 8 months ago

Could someone clarify for me where this GIT_DUET_CO_AUTHORED_BY gets set? Is this in my .gitconfig?

It's an environment variable that you would set in your shell.