Skip to content

:octocat: Nano nodejs module to get information of any git commit.

License

Notifications You must be signed in to change notification settings

hustcc/the-git-commit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

the-git-commit

Nano nodejs module to get information of any git commit.

Ver Build Status Coverage Status

Usage

var TGM = require('the-git-commit');

// lasest commit of current dir
new TGM().info();

// lasest commit of `the-git-commit`
new TGM('/home/hustcc/the-git-commit').info();

// the commit of current dir
new TGM().info('a63e1b4');

// the commit of `the-git-commit`
new TGM('/home/hustcc/the-git-commit').info('a63e1b488ac24759276a2de414122e7bca4351be');

Then get:

{
  hash: 'a41d55c100ae3e47a4781b7215cc2b5578fb59de',
  short: 'a41d55c',
  merge: ['54df71f', 'f8d50c8'],
  author: 'hustcc',
  email: '[email protected]',
  date: 'Mon Dec 18 20:26:34 2017 +0800',
  message: 'Merge branch \'release_20171218\' of fixed-1'
}

LICENSE

MIT.

Releases

No releases published

Packages

No packages published