Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including gulp-gitflow-diff with all npm packages installed. Try it out:

var gulpGitflowDiff = require("gulp-gitflow-diff")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

gulp-gitflow-diff v0.2.1

Gulp plugin for fitlering files that differ from some base git branch

gulp-gitflow-diff Build Status

Gulp plugin for fitlering files that differ from some base git branch

This plugin is useful when you have a pretty large project with adopted git-flow/github-flow organization of development process. And for example you want to lint files on git push hook. Why do you have to lint every single file when only several of them actually have been changed? This plugin will help to filter only those files that actually have been changed relatively of base branch (usually master or origin/master).


$ npm install gulp-gitflow-diff --save-dev


var gulp = require('gulp');
var gulpGitflowDiff = require('gulp-gitflow-diff');

gulp.task('default', function () {
    return gulp.src('./src/**/*.js')
        .pipe(gulpGitflowDiff({baseBranch: 'master'}))





RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free