Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gulp-git

Package Overview
Dependencies
Maintainers
1
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-git - npm Package Compare versions

Comparing version 2.8.1 to 2.9.0

5

lib/diff.js

@@ -86,3 +86,6 @@ 'use strict';

}
exec('git diff --raw -z ' + cmd, {cwd: opt.cwd}, function(err, stdout) {
var maxBuffer = opt.maxBuffer || 200 * 1024;
exec('git diff --raw -z ' + cmd, {cwd: opt.cwd, maxBuffer: maxBuffer}, function(err, stdout) {
if (err) return srcStream.emit('error', err);

@@ -89,0 +92,0 @@ var files = getReaslt(stdout);

2

package.json
{
"name": "gulp-git",
"description": "Git plugin for gulp (gulpjs.com)",
"version": "2.8.1",
"version": "2.9.0",
"homepage": "http://github.com/stevelacy/gulp-git",

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

@@ -706,2 +706,19 @@ # gulp-git

### git.diff(branch, opt)
`git diff master <options>`
Diffs between git objects
`branch`: String, branch name, commit name, or git tag
`opt`: Object (optional) `{args: 'options', cwd: '/cwd/path', quiet: true, maxBuffer: 200 * 1024}`
```js
gulp.task('diff', function(){
gulp.src('./*')
.pipe(git.diff('develop', {log: true}))
.pipe(gulp.dest('./diff.out'));
});
```
#### You can view more examples in the [example folder.](https://github.com/stevelacy/gulp-git/tree/master/examples)

@@ -708,0 +725,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