DEV Community

Discussion on: Did AI Erase Attribution? Your Git History Is Missing a Co-Author

Collapse
 
darkwiiplayer profile image
𒎏Wii 🏳️‍⚧️

What would be cool is committing AI-generated code under a different author, so even the git history shows immediately "who" made the changes in question.

And maybe, just maybe, git should allow for more than one author for commits; not just because of AI.

Collapse
 
anchildress1 profile image
Ashley Childress

That's exactly what the Co-authored-by line is—it's been there for as long as I can remember. I just re-purposed it and added similar ones for different "categories" of contribution.

Also, you could theoretically set up auto-commits with some VS Code settings and really good instructions. Copilot custom agents (formerly chat modes) could be handy for this, too.

Copilot coding agent accounts for the commits you're referencing, today. 😀 I show up as a co-author because it worked based on my prompt or comments for each step except the first where it's instructions came directly from GitHub.

Here's an example:
Screenshot of recent commits pushed by coding agent with Copilot attribution as author

Collapse
 
darkwiiplayer profile image
𒎏Wii 🏳️‍⚧️

Co-authored-by is a nice workaround, but it's not really filling the gap entirely. It'd be a lot more convenient if git properly supported multiple authors rather than expecting tools to be aware of a loose convention.