TFS CodeSearch - 搜索多个 Git 分支
TFS CodeSearch - Search multiple Git Branches
我们在安装了 CodeSearch 的 TFS 2017 OnPremise 安装(版本 15.117.26714.0)上有一个 GIT 存储库。
默认情况下,CodeSearch 仅在 GIT 存储库的默认分支中进行索引和搜索(如本 How To: Use Code Search Article 中所述)。
Code Search can index multiple branches in a Git repository - by default it indexes files in only the default branch of your Git repositories (usually this is the master branch). Specify up to five additional branches for each repository that you want Code Search to index in the Options section of the Version Control tab in the Settings page.
我想设置多个分支供CodeSearch搜索进去,但是在文章说的地方找不到这样的选项。附图中只有两个复选框。
我是 TFS 的管理员 - 这仍然是权限问题吗?
不是权限问题,我刚刚测试过,我没有像你提到的那样在选项菜单中有更多选项。实际上很有趣,因为文档提到了这些组件,但屏幕截图只显示了 header.
这刚刚在 VSTS 中启用,因此它还没有进入本地 TFS。参见 10 月 6 日 release notes。尚未指定何时将其纳入 TFS,但随着 2018 年开发的结束,最早可能是 TFS 2018 Update 1。
我们在安装了 CodeSearch 的 TFS 2017 OnPremise 安装(版本 15.117.26714.0)上有一个 GIT 存储库。
默认情况下,CodeSearch 仅在 GIT 存储库的默认分支中进行索引和搜索(如本 How To: Use Code Search Article 中所述)。
Code Search can index multiple branches in a Git repository - by default it indexes files in only the default branch of your Git repositories (usually this is the master branch). Specify up to five additional branches for each repository that you want Code Search to index in the Options section of the Version Control tab in the Settings page.
我想设置多个分支供CodeSearch搜索进去,但是在文章说的地方找不到这样的选项。附图中只有两个复选框。
我是 TFS 的管理员 - 这仍然是权限问题吗?
不是权限问题,我刚刚测试过,我没有像你提到的那样在选项菜单中有更多选项。实际上很有趣,因为文档提到了这些组件,但屏幕截图只显示了 header.
这刚刚在 VSTS 中启用,因此它还没有进入本地 TFS。参见 10 月 6 日 release notes。尚未指定何时将其纳入 TFS,但随着 2018 年开发的结束,最早可能是 TFS 2018 Update 1。