Name: git-info
Owner: CloudBees
Description: Get detailed data about current git repo from node.js
Forked from: scherler/git-info
Created: 2016-04-29 00:27:45.0
Updated: 2016-04-29 00:27:46.0
Pushed: 2016-04-29 00:31:26.0
Homepage: https://github.com/michalbe/git-info
Size: 26
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Quick summary and informations about a git rep returning a js-json object.
originally based on git-info by @michalbe
i giti -g
then either javascript:
gi = require('giti');
irst argument of the function can be a String
name', function(err, result) {
nsole.log(result); // { name: name-of-the-repo }
r Array of Strings
'name', 'author'], function(err, result) {
nsole.log(result); // { name: name-of-the-repo,
// author: author of the repo }
r nothing and we run all commands
unction(err, result) {
nsole.log(result);
or cli:
a: '962906a2ad46d6d40e40635baf0ec8f0a832e95b',
aShort: '962906a',
anches: [ 'master', ' sha' ],
anch: 'master',
pository: 'git@github.com:scherler/git-info.git',
thors:
'Michal Budzynski <michal@virtualdesign.pl>',
'Micha? Budzy?ski <michal@virtualdesign.pl>',
'Thorsten Scherler <scherler@gmail.com>' ],
thor: 'Thorsten Scherler <scherler@gmail.com>',
thorDateRelative: '9 hours ago',
thorDate: 'Thu Apr 28 16:08:09 2016 +0200',
me: 'git-info',
bject: '[master] do not throw an error but call the callback with it as a normal person would do. Doh' }
name author branches
thor: 'Thorsten Scherler <scherler@gmail.com>',
me: 'git-info',
anches: [ 'master', ' sha' ] }
Supported commands:
author
- last author of the repoauthors
- list of all the authorsauthorDate
- date of last commitauthorDateRelative
- date of last commitname
- name of the repositoryrepository
- address of the repobranch
- current branchbranches
- all the branches in the reposubject
- the message of the last commit