Why git blame credited a developer with 767 lines he never wrote
A developer discovered that git blame attributed 767 lines of JavaScript to him — code he never actually wrote. The file had arrived in his repository automatically via an upstream MIT-licensed project's auto-updater, and git simply recorded him as the committer when he synced the files. Running blame against the upstream origin revealed three actual contributors responsible for the code. The developer used the incident to highlight a key limitation of git blame: it records who last touched a line, not who originally authored it, and in fork-plus-auto-updater setups those are rarely the same person. He also noted that the upstream project never wired the validation module into any generation pipeline — that integration was his own addition, built on top of others' unrecognized work.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in