cloudbees/git-info

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

giti

Quick summary and informations about a git rep returning a js-json object.

originally based on git-info by @michalbe

How to use:
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' ] }
API

Supported commands:


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.