-
Notifications
You must be signed in to change notification settings - Fork 340
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
enum command: useful for debugging filter patterns #405
Conversation
…ebugging filter patterns
This is quite a nice idea! (didn't look at the implementation, just tried I have some complains though:
|
Also, just to be sure: by default |
Well, it enumerates the repository, so it sort-of does what it says on the tin. Having said that, I'm not at all married to the name. The functionality is all I was after. I really wanted to call it
All I do is insert logging output into the normal That initially tripped me up as well: I couldn't find a directory mentioned in the output, for example, that I thought I had made a filter for. It turns out it was listed much earlier than where I was looking, which revealed that Duplicacy was first applying filters to everything in a directory (including subdirectory names) before descending into subdirectories.
Correct. |
Also: you already helped me fix a bug with my ignore file :D |
Great! I am using your file as a base for my own. :-) |
@gilbertchen what's your opinion on the naming |
Instead of adding an Those options for the |
This pull request has been mentioned on Duplicacy Forum. There might be relevant details there: |
This implements a new command,
enum
, which provides functionality useful for debugging filter patterns.This command essentially executes just
CreateSnapshotFromDirectory()
(albeit a new version calledCreateSnapshotFromDirectoryFilterDebug()
) on the repository directory, but provides additional options for logging the snapshot creation process. For example:The output prints whether the entry is included or excluded in the snapshot, the rule (if any) that caused the entry to be included or excluded, and the full path of the entry. Output is tab-delimited, for ease of importing into a spreadsheet for further analysis.