Re:Using Git to attribute AI-generated code
by OliverGilan on Thursday January 15, 2026 @04:43PM
(#46639766)
Maintainer here.
In the case where a human edits a previously AI-generated line we simply track that as a human-produced line of code. We are thinking of making this a distinct subcategory because there's a lot of useful info in that data.
Regarding performance we haven't done rigorous benchmarks but we've been using this internally and haven't noticed any problems
One question: How do you handle cases where AI-generated code is heavily edited by humans? Does it still count as "AI-generated" or does it become "human-written"?
Also curious about performance impact - does adding this metadata to every commit slow down large repos?