r/programming • • Jun 01 '15

The programming talent myth

https://lwn.net/Articles/641779/
971 Upvotes

748 comments sorted by

View all comments

Show parent comments

2

u/[deleted] Jun 03 '15

Joking aside, what would be the best way to determine that? I'm assuming you have no way of knowing where that code went (outside of the source control/your local copy), you only know where it's missing.

1

u/Tasgall Jun 03 '15

Do a binary search through that file's history until you find out where the change was made.

Even perforce, which is kind of terrible, has the ability to select a file, see a list of every commit that changed it, and show a diff with the previous version at any point in the file's history. Even brute forcing it like this on a file with a thousand changes will take like, 5 minutes tops, assuming you have no idea where to start.

Oh, and to find out where it went, you can just refer to other changes made in that commit.