|
|
|
|
|
by sdesol
3338 days ago
|
|
@sqs Since you are posting in here, I figure I would ask. Are there plans to provide an API for Sourcegraph in the near future? My product is more focused on code history discovery and I was thinking it would be nice to be able to quickly transition into Sourcegraph for code browsing and search/analysis. The discovery workflow would go something like this: https://gitsense.com/media/source-graph-integration.mp4 For the API, it would nice to be able to just query Sourcegraph to see if the tree for that commit has been indexed and is searchable. |
|
In the meantime, URLs like the following will stay around forever:
https://sourcegraph.com/REPO@GITREV/-/blob/DIR/FILE#L123
And there is no indexing step required (except for the initial clone), so you don't need to query for that. Sourcegraph's code analysis is realtime.
Feel free to email if you want more info! sqs@sourcegraph.com