1

I want to see if a string ever existed in my repo (deleted file, changed file, etc). In git, I think it would like this - git grep <regexp> $(git rev-list --all). This is based on this post How to grep (search) committed code in the Git history

Can I do such a search in sourcegraph? If so, what's the syntax

This is what I have so far:

repo:^<url to my repo>$ 
PartOfTheOhana
  • 667
  • 2
  • 16
  • 40

1 Answers1

2

this part of the documentation addresses it directly. I just missed it.

You use a glob pattern to search over the repos.

@*refs/heads/* - search across all branches
PartOfTheOhana
  • 667
  • 2
  • 16
  • 40