New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ggit

Package Overview
Dependencies
Maintainers
1
Versions
100
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ggit - npm Package Compare versions

Comparing version 0.10.2 to 0.11.0

.npmrc

1

docs/use.md

@@ -14,1 +14,2 @@ # API

{%= _.doc("./docs/numstat.md") %}
{%= _.doc("./docs/last-commit-id.md") %}

21

index.js
var getOneLineLog = require('./src/get-one-line-log');
module.exports = {
var actions = {
getOneLineLog: getOneLineLog,

@@ -15,6 +15,10 @@ cloneRepo: require('./src/clone-repo'),

commitPerLine: require('./src/commit-per-line'),
numstat: require('./src/commit-numstat')
numstat: require('./src/commit-numstat'),
lastCommitId: require('./src/last-commit-id')
};
module.exports = actions;
if (!module.parent) {
/*
getOneLineLog({

@@ -24,8 +28,9 @@ n: 4,

branch: 'master'
})
.done(function (stdout) {
console.log(stdout);
}, function (err) {
console.error(err);
});
})*/
actions.lastCommitId()
.done(function (stdout) {
console.log(stdout);
}, function (err) {
console.error(err);
});
}
{
"name": "ggit",
"description": "Local promise-returning git command wrappers",
"version": "0.10.2",
"version": "0.11.0",
"author": "Gleb Bahmutov <gleb.bahmutov@gmail.com>",

@@ -6,0 +6,0 @@ "bin": {

@@ -1,2 +0,2 @@

# ggit v0.10.2
# ggit v0.11.0

@@ -220,5 +220,19 @@ > Local promise-returning git command wrappers

### lastCommitId
Returns last commit id
```js
require('ggit')
.lastCommitId()
.then(function (str) {
// str is full SHA id string
})
.done();
```
## Development

@@ -225,0 +239,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc