ihdv
ihdv

Reputation: 2277

Why does searching in a forked repo on github show no result while searching in the original repo does?

I forked a github repo. I want to search for something in the codes. But searching in the original repo shows matches while searching in my forked repo shows nothing. Why?

Upvotes: 2

Views: 1885

Answers (1)

Schwern
Schwern

Reputation: 164639

Github doesn't allow searching in most forks. From Searching in Forks...

Forks are only indexed for code search when they have more stars than the parent repository. You will not be able to search the code in a fork that has less stars than its parent.

"Indexed" refers to creating a search index so Github can do fast searches without having to read all the code.

I assume this has to with conserving resources to both build and store the search index.

Upvotes: 3

Related Questions