Searches the repository's branches for the supplied commit.
$ npm install --save find-commit
There are 4 operations possible with find-commit: save, delete, list, and search.
Saving, using the
--save flag, saves the SHA value into an alias to use later on.
$ find-commit -s <alias> <commit-sha>
If you're no longer interested in a particular commit, delete it from your list of saved aliases with the
$ find-commit -d <alias>
--list flag to list all of the aliases you've saved and their values.
$ find-commit -l
The default behavior of find-commit is to search your repository's branches for the supplied commit (either an alias or a raw SHA value). Additionally, you can supply a branch query that will force the operation to only return branches that contain the query and your commit.
$ find-commit <alias> [branch-query]
$ find-commit <commit-sha> [branch-query]
MIT © Joe Martella