Skip to content
This repository was archived by the owner on Nov 10, 2022. It is now read-only.

Path Excludes Pattern Fix#183

Merged
westonruter merged 2 commits into
xwp:masterfrom
MattGeri:feature/path-exclude
Jun 2, 2016
Merged

Path Excludes Pattern Fix#183
westonruter merged 2 commits into
xwp:masterfrom
MattGeri:feature/path-exclude

Conversation

@MattGeri

@MattGeri MattGeri commented Jun 2, 2016

Copy link
Copy Markdown
Contributor
  • Added additional cat statement as if there are no changes in the diff outside the exclude, it doesn't work

* Added additional cat statement as if there are no changes in the diff outside the exclude, it doesn't work
Comment thread check-diff.sh Outdated

if [ ! -z "$PATH_EXCLUDE_PATTERN" ]; then
cat "$TEMP_DIRECTORY/paths-scope" | grep -E -v "$PATH_EXCLUDE_PATTERN" > "$TEMP_DIRECTORY/excluded-paths-scope"
cat "$TEMP_DIRECTORY/paths-scope" | grep -E -v "$PATH_EXCLUDE_PATTERN" | cat - > "$TEMP_DIRECTORY/excluded-paths-scope"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try adding the -q arg for grep instead of masking the failure exit code via piping into cat -

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nevermind, it doesn't work.

* Updated name to EXCLUDES (previously EXCLUDE)
* Implemented a default pattern to exclude the vendor directory
* Remove the vendor ignore from YUI as already excluded on a global level
@westonruter westonruter merged commit 159119b into xwp:master Jun 2, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants