git-commit-info
Get all information about a specific commit.
Installation
$ npm i git-commit-info --save
or
$ yarn add git-commit-info
Usage
Available parameters:
cwd
: Specify the path. Default: process.cwd()
commit
: The hash of the commit. Default: latest
const gitCommitInfo = require('git-commit-info');
gitCommitInfo();
gitCommitInfo({
cwd: './my_repo',
});
gitCommitInfo({
commit: '82442c2405804d7aa44e7bedbc0b93bb17707626',
});
gitCommitInfo({
cwd: './my_repo',
commit: '82442c2405804d7aa44e7bedbc0b93bb17707626',
});
LICENSE
MIT © Jan Peer Stöcklmair