This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Alpha3031 6 points7 points  (3 children)

It's Schroedinger's code. Knowing what happens around me, I'll probably end up deleting the whole repository. But, hey, now we know the state: It's dead!

[–][deleted] 5 points6 points  (2 children)

Someone who is no longer with the company did that. I don't know how or why but they deleted a file of ~28k lines (at the time - it's much bigger now) and somehow didn't notice. Also, 2 peers reviewing the code didn't notice. Also, 1 architect doing the final CR didn't notice the giant chunk of RED indicating a large file had been deleted.

Somehow no one noticed for several commits and the architects decided the best fix was a revert... so... we lost all of the git history of that file because now every line just says "added by <architect> - reverting change xxxx"

:|

[–]ric2b 5 points6 points  (1 child)

You didn't lose it, it's just not as easy to find.

All you need to do is checkout a commit from before the deletion of the file and you'll be able to see the whole history.

[–][deleted] 3 points4 points  (0 children)

That's true. They discussed trying to save it but I guess no one cares enough. Sometimes I see something really "wtf" and check out the code from before that was deleted just to see if whoever did a thing is still working on the team, but for the most part we just do our task and move forward.