An open API service indexing awesome lists of open source software.

https://github.com/semihbkgr/git-find

search texts on a specific git commit
https://github.com/semihbkgr/git-find

git go golang search tool

Last synced: about 2 months ago
JSON representation

search texts on a specific git commit

Awesome Lists containing this project

README

          

# git-find

[![ci workflow](https://github.com/semihbkgr/git-find/actions/workflows/ci.yml/badge.svg)](https://github.com/semihbkgr/git-find/actions/workflows/ci.yml)
[![go doc](https://godoc.org/github.com/semihbkgr/git-find?status.png)](https://pkg.go.dev/github.com/semihbkgr/git-find)

'git-find' is a tool that enables you to search texts on a specific git commit.

```shell
git find [args --commit= --ignore-case ...] [search terms]
```

to list all available args: 'git-find --help'

### Installation

```shell
go install github.com/semihbkgr/git-find@latest
```

### Usage

to find 'todo' and 'func' keywords on commit '9aaf0b4'

```shell
git find --commit=9aaf0b4 --ignore-case --removed todo func
# --commit: defines which commit you want to search on
# --ignore-case: apply case-insensitive search
# --removed: prints removed lines as well
```

output

![output](./output.png)

to search on working tree, do not pass 'commit' arg.

```shell
git find [search terms]
```

to list all available args

```shell
git-find --help
```