Skip to content

Instantly share code, notes, and snippets.

@knxroot
Created October 23, 2014 13:51
Show Gist options
  • Save knxroot/9e744e3ba7a2b50bf164 to your computer and use it in GitHub Desktop.
Save knxroot/9e744e3ba7a2b50bf164 to your computer and use it in GitHub Desktop.
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
Copy link

rafis commented Aug 10, 2016

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

@JefferE
Copy link

JefferE 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
Copy link

adi-zz commented Jan 4, 2018

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

@pataluc
Copy link

pataluc commented Apr 23, 2021

it works with adi-zz suggestion, thanks ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment