My differential.generated-paths is set to ["#^Gemfile.lock$#","/compiled\\.js$/","#/vendor/#"], but I'm looking at a diff which adds files underneath vendor/... and they're showing up as the full file. I've run ./bin/cache purge --purge-all and refreshed.
I can't reproduce this. Here's what I did:
I configured differential.generated-paths like your example:
I made some changes locally:
$ git status On branch master Your branch is up-to-date with 'origin/master'. Changes to be committed: (use "git reset HEAD <file>..." to unstage) new file: Gemfile.lock new file: something-with-compiled.js new file: vendor/example.c
I arc diff'd these changes, and got hits on two rules:
The third rule doesn't hit because it requires a leading /. I modified the rule into:
Then ran arc diff again and got hits on all three rules:
Note that these rules are evaluated the first time a changeset is rendered, not each time we re-render a changeset. If you're reloading existing diffs, they won't re-evaluate the rules. I'm going to assume that's the issue here and fix this with a documentation change.
I had this same issue because it wasn't clear to me from the example regex's that #/vendor/# wouldn't match a vendor folder that's at the root. Would it make sense to change that 2nd example value (#/autobuilt/#) to something like the modified rule from your comment? #(^|/)autobuilt/#