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 1.18.0 to 1.19.0

2

package.json
{
"name": "ggit",
"description": "Local promise-returning git command wrappers",
"version": "1.18.0",
"version": "1.19.0",
"author": "Gleb Bahmutov <gleb.bahmutov@gmail.com>",

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

@@ -176,3 +176,11 @@ # ggit

You can get commits after certain SHA
```sh
var commits = require('ggit').commits;
commits.after('439...')
.then(function (list) { ... })
```
### trackedFiles

@@ -179,0 +187,0 @@

@@ -16,2 +16,9 @@ 'use strict'

function getLogAfter (commit) {
return getOneLineLog({
full: true,
from: commit
})
}
/*

@@ -37,2 +44,16 @@ // returns commits from given repo folder

// returns list of commits after given commit sha
function commitsAfter (commit, gitRepoRootFolder) {
if (!gitRepoRootFolder) {
gitRepoRootFolder = process.cwd()
}
la(check.unemptyString(gitRepoRootFolder), 'missing git repo folder')
la(fs.existsSync(gitRepoRootFolder), 'cannot find folder', gitRepoRootFolder)
return folders
.to(gitRepoRootFolder)
.then(() => getLogAfter(commit))
.tap(folders.back)
}
/*

@@ -93,3 +114,4 @@ zips list of commits into object where keys = ids, values = messages

),
afterLastTag: afterLastTag
afterLastTag: afterLastTag,
after: commitsAfter
}

@@ -22,2 +22,4 @@ var la = require('lazy-ass')

cmd += ' ' + opts.remote + '/' + opts.branch + '..' + opts.branch
} else if (opts.from) {
cmd += ' ' + opts.from + '..'
}

@@ -24,0 +26,0 @@ debug('using log cmd', cmd)

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