为什么要使用“树层次结构”按钮在 Perforce 的文件夹差异中禁用?

发布于 2024-11-29 00:38:15 字数 938 浏览 0 评论 0原文

我在使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文