News for hackers. Stuff that matters.
Re:GitHub experiencing issues with actions, pull requests, p... by inetknght on Monday February 08, 2021 @11:25AM (#26066552)
Github's code search has never been useful though
Re:GitHub experiencing issues with actions, pull requests, p... by mistersys on Monday February 08, 2021 @11:29AM (#26066609)
GitHub search is not very smart, but I prefer that when searching code. When searching code, I'm usually trying to find exact tokens i.e. a variable name or an error message string vs. searching documents.

I find it useful all the time.

Re:GitHub experiencing issues with actions, pull requests, p... by inetknght on Monday February 08, 2021 @11:31AM (#26066658)
I've found that `grep` with PCRE enabled is far more useful to find exact tokens like variable names or error message strings.

I've never had Github's search find what I'm looking for.

Re:GitHub experiencing issues with actions, pull requests, p... by remram on Monday February 08, 2021 @11:39AM (#26066778)
That requires you to clone. It's a minor hassle if you search over a single repo, but when searching across an organization or the whole site, using grep is not an option.
Re:GitHub experiencing issues with actions, pull requests, p... by inetknght on Monday February 08, 2021 @12:24PM (#26067415)
> That requires you to clone. It's a minor hassle if you search over a single repo, but when searching across an organization or the whole site, using grep is not an option.

Are you kidding? The finer granularity that searching over an organization or whole site makes grep the far better choice especially since its output can be fed as input to more filtering steps.

Re:GitHub experiencing issues with actions, pull requests, p... by remram on Monday February 08, 2021 @01:14PM (#26068012)
I can't understand your point. GitHub can search over finer granularities e.g. single repo. And did you understand my use case at all, about grep not being an option when searching at wider scales?

No, I am not "kidding"... are you?

Re:GitHub experiencing issues with actions, pull requests, p... by inetknght on Monday February 08, 2021 @03:37PM (#26069769)
I don't understand grep not being an option when searching at wider scales. I have yet to find a wide-enough scale that grep can't handle.

And GitHub's search results are _literally_ useless.

> No, I am not "kidding"... are you?

Nope

Re:GitHub experiencing issues with actions, pull requests, p... by devlopr on Monday February 08, 2021 @06:29PM (#26071812)
Re:GitHub experiencing issues with actions, pull requests, p... by inetknght on Tuesday February 09, 2021 @04:42AM (#26075572)
I use pure `grep`, not `git-grep`.
Re:GitHub experiencing issues with actions, pull requests, p... by upbeat_general on Monday February 08, 2021 @12:15PM (#26067301)
I also find it useful yet it still often misses exact matches.

If I search for “int x = 5” and it doesn’t return “int x = 5;”, there’s an issue here.

Re:GitHub experiencing issues with actions, pull requests, p... by zoomablemind on Monday February 08, 2021 @11:55AM (#26067015)
'git grep' allows the search within the repo, assuming that you have it cloned locally.