为什么要使用“树层次结构”按钮在 Perforce 的文件夹差异中禁用?
我在使用 Perforce 时遇到问题。
我正在使用 P4V,但不知道 Perforce Server 版本。
我们的项目中经常有一些文件不需要进行版本控制。我找到了一种通过编辑工作区视图从 Perforce 中排除文件夹或文件的方法。
使用 "-//depot/. //Perforce/..."
或 "-//depot/*.dll //Perforce/*.dll"
我可以排除路径中的所有文件或文件夹。然后文件夹差异将用“排除的文件夹”标记它们。世界是干净的。
但!有很多项目,每个项目都有我们不需要的相同文件夹,例如“bin”“obj”,使用WebStorm有“.idea”,使用ReSharper有很多文件夹启动与“_ReSharper”
,非常恶心。
通过此处和这里,通配符(...\*
)似乎放在路径中间,例如"//Perforce/... /bin/..."
,让文件夹差异排除每个后代文件夹名称“bin”。
但有一个问题。当我使用“Diff Against..”时,将显示文件夹差异视图。所有文件不显示在树视图中,而是显示在列表视图中。上面的“在树形层次结构中显示文件”按钮已被禁用。最重要的是,工作区视图中排除的文件夹/文件就躺在那里。
当我删除后代文件夹路径时,它会在树视图中变得正常并标记为“排除文件夹”,
我对此一无所知。谁能告诉我那里发生了什么?
I have a problem when using Perforce.
I'm using P4V, but don't know the Perforce Server version.
There are often some files in our project that don't need to be version-controlled. And I found a way to exclude folders or files from Perforce by editing the Workspace View.
Using "-//depot/. //Perforce/..."
or "-//depot/*.dll //Perforce/*.dll"
I could exclude all files or folders in a path. Then the Folder Diff will mark them with "Excluded Folder". The world is clean.
BUT! there are a lot of projects, and each of them has the same folders that we don't need like "bin" "obj", and with WebStorm there are ".idea"s, and with ReSharper there are a lot of folders starts with "_ReSharper"
, very disgusting.
With the articles here and here, the wildcards (...\*
) seem to be put in the middle of path, like "//Perforce/.../bin/..."
, to let Folder Diff exclude every descendant folder names "bin".
But there is the problem. When I use "Diff Against.." Then the Folder Diff view shows up. All the files are not shown in tree view but in list view. The button "Show files in a tree hierarchy" up there is disabled. And the most important thing is that excluded folders /files in workspace view are lying down there.
When I delete the descendant folder path, it turns normal with tree view and marked "exclude folders"
I have no idea about that. Could anyone tell me what happened there?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论