Skip to content

remipassmoilesel/gitsearch

Repository files navigation

Gitsearch

pipeline status go_report coverage report

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:

Installation

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 

Usage

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

Development

For development and testing see:

Build (tested on GNU/Linux only):

$ ./scripts/ci.sh