by canyonero · 4y ago · 0 comments
I've found myself sometimes thinking that something existed in a particular codebase and I go to look for only to discover that I'm unable find it. Then, I realize that the code I was looking for has been removed. I can only find it by browsing back into the history figuring out the events that led to the deletion or change. Being able to search the history would be killer IMO.
[0] https://sourcegraph.com/search?q=context:global+repo:%5Egith...
[1] https://sourcegraph.com/search?q=context:global+repo:%5Egith...
(I work there, just commenting on my own though. we're all pretty happy to have competition, more awareness of code search, etc.)
For example: git log -pS 'deletedvar'