Search in your git repositories ! Start gitsearch in a Git repository and it will index all committed files and search for you.
This is a learning project, paint is fresh, and contributions are welcome !
Source code is hosted here:
Gitsearch is a single executable. Drop it in a folder and start use it. Gitsearch has only be tested on GNU/Linux for the moment.
$ cd /tmp && \
curl -o gitsearch -L https://github.com/remipassmoilesel/gitsearch/releases/latest/download/gitsearch-linux && \
chmod +x gitsearch && \
sudo mv gitsearch /usr/local/bin
Use the web user interface:
$ cd /path/to/git-repository
$ gitsearch
Search the current files and the history of a git repository:
$ gitsearch search -q <query> -n <number-of-results>
You can use Bleve Query strings: https://blevesearch.com/docs/Query-String-Query/
Show help for commands or sub commands:
$ gitsearch help
$ gitsearch index help
For development and testing see:
- https://github.com/blevesearch/bleve
- https://github.com/go-git/go-git
- https://github.com/golang/mock
Build (tested on GNU/Linux only):
$ ./scripts/ci.sh