tfignore wildcard directory segment

老子叫甜甜 提交于 2019-12-03 06:21:55

The documentation should more correctly read:

The * and ? wildcards are supported in the leaf name only.

That is, you can use something like these to select multiple files or multiple subdirectories, respectively, in a common parent:

/path/to/my/file/foo*.txt
/path/to/my/directories/temp*

What may work in your case--to ignore the same file in multiple directories--is just this:

foo*.txt

That is, specify a path-less name or glob pattern to ignore matching files throughout your tree. Unfortunately you have only those two options, local or global; you cannot use a relative path like this--it will not match any files!

my/file/foo*.txt

The global option is a practical one because .tfignore only affects unversioned files. Once you add a file to source control, changes to that file will be properly recognized. Furthermore, if you need to add an instance of an ignored name to source control, you can always go into TFS source control explorer and manually add it.

It seems this is now supported

As you see I edited tfignore in the root folder of the project such that any new branch will ignore its .vs folder when being examined for source control changes

\*\.vs
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!