Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A WinMerge filter for compare 2 Laravel proyects
## This is a directory/file filter for WinMerge
## This filter is a helper for compare 2 laravel proyects in Windows
name: Exclude Laravel useless
desc: Exclude additional data from Laravel Proyects
## This is an inclusive (loose) filter
## (it lets through everything not specified)
def: include
## Filters for filenames begin with f:
## Filters for directories begin with d:
## (Inline comments begin with " ##" and extend to the end of the line)
d: \\.idea$
d: \\.sass-cache$ ## Sass
d: \\app\assets\bower_components$ ## Bower
d: \\bower_components$ ## Bower
d: \\app\public\bower_components$ ## Bower
d: \\node_modules$ # Node modules
d: \\vendor$ # Components
d: \\\.svn$ ## Subversion working copy
d: \\_svn$ ## Subversion working copy ASP.NET Hack
d: \\cvs$ ## CVS control directory
d: \\\.git$ ## Git directory
d: \\\.bzr$ ## Bazaar branch
d: \\\.hg$ ## Mercurial repository
@rafis

This comment has been minimized.

Copy link

commented Aug 10, 2016

Strange, it works for .git folder (excludes .git folder), but doesn't exclude node_modules.

@JefferE

This comment has been minimized.

Copy link

commented Jan 16, 2017

I have the same problem, I can't seem to come up with a WinMerge rule that will ignore node_modules

@adi-zz

This comment has been minimized.

Copy link

commented Jan 4, 2018

If you use
d: \\node_modules$ ## Node modules
instead of
d: \\node_modules$ # Node modules
?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.