2

I was trying to find the specifications for String#split in RubySpec on GitHub. (Turns out to be core/string/split_spec.rb.)

If I try searching on ruby/rubyspec, I get told

Sorry, forked repositories are not currently searchable.

You could try searching the parent repository.

Trying the linked search on the parent repository rubyspec/rubyspec, I get

We couldn’t find any code matching 'string split'

You could try an advanced search.

However, the advanced search doesn't seem to have any ability to search the archive branch of rubyspec/rubyspec, which has actual code in it (the master branch just has a README file).

sawa
  • 165,429
  • 45
  • 277
  • 381
Andrew Grimm
  • 78,473
  • 57
  • 200
  • 338

1 Answers1

2

I confirm that search, on GitHub, is limited on master branches only of non-forked repo.
See "How to search for a commit message in GitHub?".

You would need to make a copy (not a fork) of that repo and publish it on GitHub to use GitHub search.
Or you can perform a grep search on all branches in a local clone.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250