Comparing version 2.8.1 to 2.9.0
@@ -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); |
{ | ||
"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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
51431
933
772