binwiederhier/syncany — pull request #108 by vadimpanin (2014-04-20 21:27:56+00:00)
Title: autoconverting wildcards to regexps

[19:53] Hello Pim. Is it documented somewhere yet? I think it's defying the principle of minimum unexpectedness (if it's a real term :). I see two options: output errors to the console if user tries to use .syignore with lines that have * in it, but do not start with "regexp:", or convert thouse to regular expressions right away (replacing * with .* for example and adding $/^).
[19:54] Hiya Vadim:)
[19:55] you're absolutely right
[19:55] (it's not documented anywhere)
[19:56] the thing is that i started on this and the idea was to have an IgnoreOperation and be able to ignore files that are already versioned, but that was so big we decided it was out of scope for at least the near future, and then i whipped this up
[19:58] i took a look at the gitignore spec, but that seemed way to much to implement all, if you'd like to treat wildcards seperately, that would be a good idea