This command enables lexical search for git commit messages and GitHub issues.
Build from source
go install github.com/noahshinn/gcl/cmd@latest
Make sure that your current working directory is in a git project, then run:
gcl --query "some change about search and ranking"
gcl
passes the since
flag to git log
(the default query is 1 week), so you can do:
gcl --query "some change about search and ranking" --since "1 day ago"
or
gcl --query "some change about search and ranking" --since "2014-02-12T16:36:00-07:00"
gcl
returns the top 10 results by default. Pass --n
to get more or less results:
gcl --query "some change about search and ranking" --n 1000
To search for GitHub issues, set the mode
to issues
. Note: the --since
flag is not supported for issues yet.
gcl --query "some issue about orphan processes"