git-commit-info
Simple utility that allows to get the latest commit info
Last updated 8 years ago by circuithub .
Repository · Original npm · Tarball · package.json
$ cnpm install git-commit-info 
SYNC missed versions from official npm registry.

git-commit-info

Get all information about a specific commit.

Build Status Build status

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');

// information of process.cwd() and the latest commit
gitCommitInfo();

// information of the latest commit in ./my_repo
gitCommitInfo({
  cwd: './my_repo',
});

// information of the specified commit in process.cwd()
gitCommitInfo({
  commit: '82442c2405804d7aa44e7bedbc0b93bb17707626', // any hash
});

// information of the specified commit in ./my_repo
gitCommitInfo({
  cwd: './my_repo',
  commit: '82442c2405804d7aa44e7bedbc0b93bb17707626', // any hash
});

LICENSE

MIT © Jan Peer Stöcklmair

Current Tags

  • 1.1.0                                ...           latest (7 days ago)

5 Versions

  • 1.1.0                                ...           7 days ago
  • 1.0.0                                ...           3 years ago
  • 0.2.0                                ...           8 years ago
  • 0.1.0                                ...           8 years ago
  • 0.0.2                                ...           8 years ago
Maintainers (1)
Downloads
Today 0
This Week 3
This Month 36
Last Day 0
Last Week 33
Last Month 7
Dependencies (1)
Dev Dependencies (0)
None

Copyright 2014 - 2016 © taobao.org |