Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter extension #514

Merged
merged 7 commits into from Apr 27, 2019

Conversation

Projects
None yet
2 participants
@a-s-z-home
Copy link
Contributor

commented Nov 5, 2018

I have extended the filter file syntax with a new statement to include another filter file.
Using @, you can now include other files. Relative paths are supported and are resolved against the currently processed file.

  • You can use this in the filters file
  • You can use this at command line for the restore command, to specify the patterns in a file instead of the command line. This is good for windows users, since escaping in cmd.exe is very difficult.

a-s-z-home added some commits Nov 3, 2018

Added an include mechanism for filter file.
- Using @<filename>, you can now include other files. Relative paths are supported.
  This is useful, if you have several repositories with some different filters and a common filter base set.
- Replaced static check for .duplicacy directory with usage of predef…
…ined filters.

  Do not "misuse" property nobackupFile to trigger this feature.
- Restructured ProcessFilterFile function and splitted it in smaller parts.
- Prepare usage of new filter syntax for arguments of restore command.
Use new filter processing function for restore command.
- You can now include a filter file by using "@<filename>".
@gilbertchen

This comment has been minimized.

Copy link
Owner

commented Feb 26, 2019

This pull request has been mentioned on Duplicacy Forum. There might be relevant details there:

https://forum.duplicacy.com/t/issues-using-filters-with-duplicacy-web-edition/1840/4

@gilbertchen gilbertchen merged commit 6fd3fbd into gilbertchen:master Apr 27, 2019

1 check passed

license/cla Contributor License Agreement is signed.
Details
@gilbertchen

This comment has been minimized.

Copy link
Owner

commented Apr 27, 2019

Thank you for your contribution.

@gilbertchen

This comment has been minimized.

Copy link
Owner

commented May 25, 2019

This pull request has been mentioned on Duplicacy Forum. There might be relevant details there:

https://forum.duplicacy.com/t/filters-just-got-a-big-upgrade/2120/1

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.