6 ms·
One feature for code search that I've wanted for some time that could unlock some really interesting results would be to allow search to reach into the git file
by canyonero 4y ago
One feature for code search that I've wanted for some time that could unlock some really interesting results would be to allow search to reach into the git file history.
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.
- LifeIsBio 4y agoI’ve run into this exact situation multiple times. Searching the whole history would be revolutionary.
- slimsag 4y agoFWIW you can do this with Sourcegraph today, searching over both diffs (code changes)[0] and commit messages[1]: [0] https://sourcegraph.com/search?q=context:global+repo:%5Egithub%5C.com/golang/go%24+type:diff+TODO&patternType=standard https://sourcegraph.com/search?q=context:global+repo:%5Egith... [1] https://sourcegraph.com/search?q=context:global+repo:%5Egithub%5C.com/golang/go%24+type:commit+TODO&patternType=standard 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.)
- durazabu 4y agoAre you familiar with git pickaxe? For example: git log -pS 'deletedvar'
- disqard 4y agoThank you for sharing that! TIL.
- sdesol 4y agoThis is something that I'm working on and I believe a couple of others as well. My solution won't be available until early next year though, as indexing public repos at scale is far from trivial and I'm expecting this will consume over 40TB of fast storage to be performant.