git-commit-range
Get the git commithash within a Range from-to
Installation
$ npm i git-commit-range --save
or
$ yarn add git-commit-range
Usage
Returns an array with the commithashes from a specified commit to another specified commit.
const gitCommitRange = ; ; // returns all commits (complete hash) since the beginning of the repo of process.cwd() ; // returns all commits (complete hash) between from and to EXCLUDING from and to, of the path 'my/repo' ; // returns all commits (complete hash) between from and to INCLUDING from and to, of the path 'my/repo' ; // returns all commits as text between from and to INCLUDING from and to, of the path 'my/repo' ; // returns all commits (short hash) between from and to INCLUDING from and to, of the path 'my/repo' ; // returns all commits between from and to EXCLUDING all merge commits, of the path 'my/repo'
LICENSE
MIT © Lukas Aichbauer