-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
vdoc: rewrite and extend vdocignore #21314
Conversation
2b84b60
to
7e39a41
Compare
Would be nice, of course, to get full .gitignore paths, so you could have **/a/ meaning every At the very least, support trailing slash means subdir, while no trailing slash means file. |
Agree about the wildcards. Would approach it at a later point, or if someone else does it it's cool as well. |
1020d83
to
72b66f0
Compare
7d27afd
to
66e52c6
Compare
Yep, but a trailing slash forces it to only match subdirs. |
c095106
to
0fe782b
Compare
Yep, a test for this is added. To give more info: Our |
0c926c7
to
e71781d
Compare
3881a62
to
69bb110
Compare
69bb110
to
75e1d82
Compare
After working on an improved status quo to also have a good fallback, this PR approaches to rewrite and to extend
.vdocignore
.It adds pattern support.
Until now to ignore
a
and the same pattern in a sub-directory (b/a
) it is required to set the exact path for every subdirectory. Now it is sufficient to set the patternSimilar to gitignore a pattern starting with
/
will be treated as relative pattern.->
/a
will ignore/a
but not/b/a
.->
/c/d
will ignore/c/d
but not/b/c/d
Treats lines starting with
#
as commentsRemoves the functionality that an empty ignore file ignores all in its directory.