Conversation
Before this commit, any line under the `[ignore]` section of `.zod/config` matched only filenames, not directory names. This commit allows the user to indicate whole directories to ignore. The user does this by ending the name spec with `/`. For instance, using the snippet ``` [ignore] Makefile .hide/ ``` in `.zod/config` will cause zod to ignore files matching `Makefile` and directories matching `.hide`. Additionally, directories matching `.zod` and `.git` are already ignored by default (as a convenience to the user).
|
Hi Chase! The idea behind this change -- which you will have gathered for yourself quickly, but I state here anyway for completeness sake -- is that, when the user indicates a directory spec in the as opposed to the current behavior which would emit something like the difference being the addition of the part (clause). If you like this method and accept it -- I hope you do -- you should be able also to close the related PR #2 and then: no more open PRs. \o/ Also, it was good to get rid of I tried to be thorough (including updating the doc), but please edit/correct anything I missed. Oh, almost forgot: I tested this in OpenBSD 6.1 base and "Git Bash" on my employer's horrible Windows system they inflict on us. :) I think the latter is based on GNU tools. Cheers, --Rick |
|
Bump. (I hope this finds you well and enjoying your summer!) |
|
I'll need to try these changes locally, but looks good. |
Before this commit, any line under the
[ignore]section of.zod/configmatched only filenames, not directory names. This commit allows the user to indicate whole directories to ignore. The user doesthis by ending the name spec with
/.For instance, using the snippet
in
.zod/configwill cause zod to ignore files matchingMakefileand directories matching.hide.Additionally, directories matching
.zodand.gitare already ignored by default (as a convenience to the user).