Option to ignore forks #13126
-
|
When searching for code, it would be preferable to see authoritative results only - to ignore forks which can also cause needles scrolling through pages of results. For example, this search shows a lot of forks. They might help, but may also be far behind the main repo from which they were forked. GitHub already knows if a repo is a fork so I'm hoping that can permeate to search results and we can exclude them. Or maybe even exclude them by default and let searchers opt into seeing them. I imagine there's good reasons to search forks, but doesn't seem helpful by default. |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 14 replies
-
|
Plain forks would be easy for GitHub to ignore and it would be most useful. I do however have an extended problem, and that is that I author a library (curl/curl) that hundreds of other projects import into their repositories. If I try to find users of this library, like for example if I want to check if I can find applications that use a particular option, there are literally thousands of forks and code imports that make it next to impossible to find what I'm looking for. Test case: Look for CURLOPT_HEADERFUNCTION |
Beta Was this translation helpful? Give feedback.
-
|
@heaths Thanks for the feedback. This is on our roadmap, so stay tuned! |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
Thanks for your patience, everyone. There is now an option to exclude forks (or limit your search to forks). To exclude forks from your results: To search only fork repositories: For more information, please see the documentation. |
Beta Was this translation helpful? Give feedback.
-
|
I confirm that |
Beta Was this translation helpful? Give feedback.
-
|
The advanced search page can't generate the correct syntax for code search, it uses
|
Beta Was this translation helpful? Give feedback.
Thanks for your patience, everyone. There is now an option to exclude forks (or limit your search to forks).
To exclude forks from your results:
To search only fork repositories:
For more information, please see the documentation.