Skip to content

iamtekeste/discod

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DISCOD

discod which is short for DISCO(the name of my team) detective is a cli tool when given a list of git branches and a search criteria will perfom a search on one branch at a time and go through all the branches in the list printing filenames and line numbers that match the search criteria.

Install

discod makes use of ripgrep which is a search tool with more features and better perfomance than grep. Run the following command to install it.

$ brew install ripgrep

You are now ready to install discod from npm

$ npm install -g discod

Usage

discod will start the search from the directory you run it from. Make sure you are in a repo that is not dirty i.e no uncommitted/unstashed changes.

To edit the list of git branches to search through, run the following command

discod --edit-list #this will open up a text file in your default editor

After updating your branch list run this inside the directory you want the search to start from.

discod searchTerm [fileExtension]

License

MIT © Tekeste

About

Searches through a list of git branches given a search term

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors