remipassmoilesel / gitsearch

Search in your git repositories !

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Search in your git repositories !

License:GNU General Public License v3.0


Languages

Language:Go 79.4%Language:TypeScript 16.4%Language:CSS 1.7%Language:Shell 1.2%Language:Dockerfile 0.5%Language:JavaScript 0.4%Language:HTML 0.3%